Skip to content

Commit 24d258b

Browse files
authored
Merge pull request #8098 from yongruilin/github-workflow
Simplify contributor setup by removing GOPATH dependency
2 parents 1c45cb4 + ef223c9 commit 24d258b

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

contributors/guide/github-workflow.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,14 @@ description: |
1717

1818
## 2. Clone fork to local storage
1919

20-
Per Go's [workspace instructions][go-workspace], place Kubernetes' code on your
21-
`GOPATH` using the following cloning procedure.
20+
In your shell, define a local working directory as `working_dir`.
2221

23-
[go-workspace]: https://golang.org/doc/code.html#Workspaces
24-
25-
In your shell, define a local working directory as `working_dir`. If your `GOPATH` has multiple paths, pick
26-
just one and use it instead of `$GOPATH`. You must follow exactly this pattern,
27-
neither `$GOPATH/src/github.com/${your github profile name}/`
28-
nor any other pattern will work.
22+
[GO Modules]: https://go.dev/blog/using-go-modules
2923

3024
```sh
31-
export working_dir="$(go env GOPATH)/src/k8s.io"
25+
export working_dir="${HOME}/src/k8s.io" # Change to your preferred location for source code
3226
```
3327

34-
If you already do Go development on github, the `k8s.io` directory
35-
will be a sibling to your existing `github.com` directory.
36-
3728
Set `user` to match your github profile name:
3829

3930
```sh

0 commit comments

Comments
 (0)