-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build golang.org/x/sys with Go 1.19 beta1 #3199
Comments
Yes, I'm having the same issue in btwiuse/k0s after upgraded to go1.19rc1 with rules_go
|
There has to be more to this story than is apparent from the Go changelog: We pass |
|
Update `golang.org/x/sys` package to address golang/go#51706 Update bazel `rules_go` to address bazel-contrib/rules_go#3199
Update `golang.org/x/sys` package to address golang/go#51706 Update bazel `rules_go` to address bazel-contrib/rules_go#3199
This required upgrading: * bazel-gazelle to v0.29.0 (see bazel-contrib/rules_go#3199) * io_bazel_rules_go to v0.37.0 (see compatibility table w/ bazel-gazelle here https://github.com/bazelbuild/bazel-gazelle/#compatibility-with-rules_go); this was preferred over more recent versions because since 0.38 this requires org_golang_x_tools v0.5.0 [1], while Tink imports v0.1.12. io_bazel_rules_go v0.37.0 is compatible with v0.1.12 [2]. [1] https://github.com/bazelbuild/rules_go/blob/cf78385a58e278b542511d246bb1cef287d528e9/go/private/repositories.bzl#L73 [2] https://github.com/bazelbuild/rules_go/blob/2a0f48241cf5a4838b9ccfde228863d75d6c646e/go/private/repositories.bzl#L73 PiperOrigin-RevId: 533540295 Change-Id: If55acb1d82e60d09cd0420b1575f94b0a802c7f2
This required upgrading: * bazel-gazelle to v0.29.0 (see bazel-contrib/rules_go#3199) * io_bazel_rules_go to v0.37.0 (see compatibility table w/ bazel-gazelle here https://github.com/bazelbuild/bazel-gazelle/#compatibility-with-rules_go); this was preferred over more recent versions because since 0.38 this requires org_golang_x_tools v0.5.0 [1], while Tink imports v0.1.12. io_bazel_rules_go v0.37.0 is compatible with v0.1.12 [2]. [1] https://github.com/bazelbuild/rules_go/blob/cf78385a58e278b542511d246bb1cef287d528e9/go/private/repositories.bzl#L73 [2] https://github.com/bazelbuild/rules_go/blob/2a0f48241cf5a4838b9ccfde228863d75d6c646e/go/private/repositories.bzl#L73 PiperOrigin-RevId: 533540295 Change-Id: I676a3416fd0b2b9fc342e0946c110b22fd89ca2f
This required upgrading: * bazel-gazelle to v0.29.0 (see bazel-contrib/rules_go#3199) * io_bazel_rules_go to v0.37.0 (see compatibility table w/ bazel-gazelle here https://github.com/bazelbuild/bazel-gazelle/#compatibility-with-rules_go); this was preferred over more recent versions because since 0.38 this requires org_golang_x_tools v0.5.0 [1], while Tink imports v0.1.12. io_bazel_rules_go v0.37.0 is compatible with v0.1.12 [2]. [1] https://github.com/bazelbuild/rules_go/blob/cf78385a58e278b542511d246bb1cef287d528e9/go/private/repositories.bzl#L73 [2] https://github.com/bazelbuild/rules_go/blob/2a0f48241cf5a4838b9ccfde228863d75d6c646e/go/private/repositories.bzl#L73 PiperOrigin-RevId: 533540295 Change-Id: I51b437418ac8cc63a18a26e4fdc7ee612c77f332
This required upgrading: * bazel-gazelle to v0.29.0 (see bazel-contrib/rules_go#3199) * io_bazel_rules_go to v0.37.0 (see compatibility table w/ bazel-gazelle here https://github.com/bazelbuild/bazel-gazelle/#compatibility-with-rules_go); this was preferred over more recent versions because since 0.38 this requires org_golang_x_tools v0.5.0 [1], while Tink imports v0.1.12. io_bazel_rules_go v0.37.0 is compatible with v0.1.12 [2]. [1] https://github.com/bazelbuild/rules_go/blob/cf78385a58e278b542511d246bb1cef287d528e9/go/private/repositories.bzl#L73 [2] https://github.com/bazelbuild/rules_go/blob/2a0f48241cf5a4838b9ccfde228863d75d6c646e/go/private/repositories.bzl#L73 PiperOrigin-RevId: 533540295 Change-Id: I818b20b5a00917c719d159b18166d293cc68e1ab
This required upgrading: * bazel-gazelle to v0.29.0 (see bazel-contrib/rules_go#3199) * io_bazel_rules_go to v0.37.0 (see compatibility table w/ bazel-gazelle here https://github.com/bazelbuild/bazel-gazelle/#compatibility-with-rules_go); this was preferred over more recent versions because since 0.38 this requires org_golang_x_tools v0.5.0 [1], while Tink imports v0.1.12. io_bazel_rules_go v0.37.0 is compatible with v0.1.12 [2]. [1] https://github.com/bazelbuild/rules_go/blob/cf78385a58e278b542511d246bb1cef287d528e9/go/private/repositories.bzl#L73 [2] https://github.com/bazelbuild/rules_go/blob/2a0f48241cf5a4838b9ccfde228863d75d6c646e/go/private/repositories.bzl#L73 PiperOrigin-RevId: 533540295
What version of rules_go are you using?
v0.33.0
What version of gazelle are you using?
v0.25.0
What version of Bazel are you using?
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
What did you do?
Attempt to build a binary that imports golang.org/x/sys with Go 1.19 beta1.
What did you expect to see?
A successful build.
What did you see instead?
To reproduce, here's a copy of all files and the directory layout:
I got successful builds for the following cases:
:hello_lib
/x/sys/unix
with a no-op local dependency//foo:foo_lib
/x/sys/unix
with a simple external dependency (go.uber.org/atomic in this case)So this is specifically an issue with how x/sys/unix is linked.
@sywhang thinks this is caused by golang/go@e853464.
The text was updated successfully, but these errors were encountered: