stop hardcoding go sdk version
Turns out 1.17 is 1.17, but not 1.17.x, like I assumed previously. From now on, the builds will be non-reproducible and will depend on whatever the latest stable Go version is. This is better than me trying to remember to bump Go versions when patches come out.
This commit is contained in:
parent
e89233cab2
commit
874164ece1
@ -22,12 +22,15 @@ http_archive(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")
|
||||||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
||||||
|
|
||||||
go_rules_dependencies()
|
go_rules_dependencies()
|
||||||
|
|
||||||
go_register_toolchains(version = "1.17")
|
# use latest stable.
|
||||||
|
go_download_sdk(name="go_sdk")
|
||||||
|
|
||||||
|
go_register_toolchains()
|
||||||
|
|
||||||
load("//:repositories.bzl", "go_repositories")
|
load("//:repositories.bzl", "go_repositories")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user