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
analyzer "printf" failed: analysis skipped due to type-checking error: foo.go:4:2: could not import fmt (cannot import "fmt" (unstable iexport format version 2, just rebuild compiler and std library), export data is newer version - update tool)
The issue is that Go 1.18 bumps the version number in export data. The x/tools version that is currently used by rules_go doesn't support that yet and needs to be updated.
The text was updated successfully, but these errors were encountered:
chressie
changed the title
Update x/tools to latest version
Update x/tools to 0.1.8
Dec 16, 2021
chressie
added a commit
to chressie/rules_go
that referenced
this issue
Dec 16, 2021
Ran the following commands:
bazel build go/tools/releaser
sed -i /org_golang_x_tools-public-visibility.patch/d go/private/repositories.bzl
rm third_party/org_golang_x_tools-public-visibility.patch
bazel-bin/go/tools/releaser/releaser_/releaser upgrade-dep org_golang_x_tools
Ran the following commands:
bazel build go/tools/releaser
sed -i /org_golang_x_tools-public-visibility.patch/d go/private/repositories.bzl
rm third_party/org_golang_x_tools-public-visibility.patch
bazel-bin/go/tools/releaser/releaser_/releaser upgrade-dep org_golang_x_tools
What version of rules_go are you using?
Current master branch (34a808c)
What version of gazelle are you using?
n/a
What version of Bazel are you using?
4.2.2
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
n/a
Any other potentially useful information about your toolchain?
Using
go1.18beta1
.What did you do?
Define a nogo check + use of go1.18beta1.
Basically follow the steps in https://github.com/bazelbuild/rules_go/blob/master/go/nogo.rst and use
go_register_toolchains(version = "1.18beta1")
.What did you expect to see?
Succeeding build.
What did you see instead?
Build fails with:
The issue is that Go 1.18 bumps the version number in export data. The x/tools version that is currently used by rules_go doesn't support that yet and needs to be updated.
The text was updated successfully, but these errors were encountered: