diff options
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c53df7d25..e680428c3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,8 +32,9 @@ will need to be added to the appropriate `BUILD` files, and the `:gopath` target will need to be re-run to generate appropriate symlinks in the `GOPATH` directory tree. -Dependencies can be added by using `go mod get`. In order to keep the -`WORKSPACE` file in sync, run `tools/go_mod.sh` in place of `go mod`. +Dependencies can be added by using `go get`. In order to keep the `WORKSPACE` +file in sync, run `bazel run //:gazelle -- update-repos -from_file=go.mod` in +place of `go mod`. ### Coding Guidelines @@ -65,10 +66,14 @@ Rules: * Itself. * Go standard library. - * Except (transitively) package "net" (this will result in a non-cgo - binary). Use `//pkg/unet` instead. + * Except (transitively) package "net", which would result in a cgo + binary. Use `//pkg/unet` instead. * `@org_golang_x_sys//unix:go_default_library` (Go import `golang.org/x/sys/unix`). + * `@org_golang_x_time//rate:go_default_library` (Go import + `golang.org/x/time/rate`). + * `@com_github_google_btree//:go_default_library"` (Go import + `github.com/google/btree`). * Generated Go protobuf packages. * `@org_golang_google_protobuf//proto:go_default_library` (Go import `google.golang.org/protobuf`). |