Skip to content

Commit

Permalink
chore: remove obsolete go_sdk references (#314)
Browse files Browse the repository at this point in the history
`rules_go` now provides access to the Go binary at `@rules_go//go`.
  • Loading branch information
cgrindel committed Jul 8, 2023
1 parent e6b2a4c commit d62614b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ execute_binary(
"mod",
"tidy",
],
binary = "@go_sdk//:bin/go",
binary = "@io_bazel_rules_go//go",
execute_in_workspace = True,
)

Expand Down
6 changes: 0 additions & 6 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ bazel_dep(
)
bazel_dep(name = "platforms", version = "0.0.6")

go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
use_repo(
go_sdk,
go_sdk = "go_default_sdk",
)

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")

# NOTE: We are not loading the Go modules from go.mod, because we are doing
Expand Down
2 changes: 1 addition & 1 deletion cmd/go_deps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Execute the following to update the go module files, resolve the Golang dependen
Bazel build files.

```sh
# bazel run @go_sdk//:bin/go -- mod tidy
# bazel run //:go_mod_tidy
$ bazel run //:gazelle_update_repos
$ bazel run //:gazelle
```
Expand Down

0 comments on commit d62614b

Please sign in to comment.