You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same is true with or without clearing the Go cache.
Upgrading to versions below 1.22.0 e.g. go_register_toolchains(version = "1.21.13") does not fail to build, but due to a transitive requirement still updates go.mod to incorrectly claim go 1.22.7
The text was updated successfully, but these errors were encountered:
brianchesko
changed the title
GoLink failing to link golang.org/x/sys/unix after upgrading from Go toolchain from 1.19.13 to >=1.22.0
GoLink failing to link golang.org/x/sys/unix after upgrading Go toolchain from 1.19.13 to >=1.22.0
Sep 5, 2024
What version of rules_go are you using?
v0.44.2
What version of gazelle are you using?
v0.35.0
What version of Bazel are you using?
7.1.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Ubuntu amd64
Any other potentially useful information about your toolchain?
Using WORKSPACE-based Gazelle deps due to incompatibilities with other dependencies not yet on bzlmod (namely https://github.com/stackb/rules_proto)
What did you do?
Updated
go_register_toolchains(version = "1.20.7")
togo_register_toolchains(version = "1.22.0")
, cleared out go.mod and ranbazel run @io_bazel_rules_go//go -- mod tidy && bazel run //:gazelle-update-repos && bazel run //:gazelle --verbose_failures
What did you expect to see?
Linking and build succeeds
What did you see instead?
The same is true with or without clearing the Go cache.
Upgrading to versions below 1.22.0 e.g.
go_register_toolchains(version = "1.21.13")
does not fail to build, but due to a transitive requirement still updates go.mod to incorrectly claimgo 1.22.7
The text was updated successfully, but these errors were encountered: