Skip to content

Commit

Permalink
bazel: document usage of custom go runtime
Browse files Browse the repository at this point in the history
Release justification: non-production code changes
Release note: None
  • Loading branch information
irfansharif committed Mar 3, 2022
1 parent 1cc1725 commit 9170df0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,35 @@ http_archive(
load(
"@io_bazel_rules_go//go:deps.bzl",
"go_download_sdk",
"go_host_sdk",
"go_local_sdk",
"go_register_toolchains",
"go_rules_dependencies",
)

# To point to a mirrored artifact, use:
#
go_download_sdk(
name = "go_sdk",
urls = ["https://storage.googleapis.com/public-bazel-artifacts/go/{}"],
version = "1.17.6",
)

# To point to a local SDK path, use the following instead. We'll call the
# directory into which you cloned the Go repository $GODIR[1]. You'll have to
# first run ./make.bash from $GODIR/src to pick up any custom changes.
#
# [1]: https://go.dev/doc/contribute#testing
#
# go_local_sdk(
# name = "go_sdk",
# path = "<path to $GODIR>",
# )

# To use your whatever your local SDK is, use the following instead:
#
# go_host_sdk(name = "go_sdk")

go_rules_dependencies()

go_register_toolchains(nogo = "@cockroach//:crdb_nogo")
Expand Down

0 comments on commit 9170df0

Please sign in to comment.