-
Notifications
You must be signed in to change notification settings - Fork 632
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
go_register_toolchains: version must be a string like "1.15.5" or "host" #2953
Comments
Yes, you need to specify the version now, as per the
|
Of course and I did that, but apparently other rules call |
Do you know which one? I can't find any |
There is a workaround, see bazelbuild/rules_docker#1700 and #2761 |
Thanks, changing that gets be another issue:
I think I am stuck in a cycle of workarounds :/ |
Did you match you bumping rules_go with bumping gazelle as well ? |
If I bump both it seems to work, but all new gazelle versions suffer from: Running gazelle with go works after adding directive for defaults (otherwise gazelle rewrites all BUILD files to name go_libs/test differently from the default). I still get build issues (but those can probably be fixed by updating more packages). So if a new gazelle release fixes bazelbuild/bazel-gazelle#1076, we can probably move on. Again thanks for the help. |
By moving the container rules to the end of the WORKSPACE file, we don't need the workaround. |
What version of rules_go are you using?
Trying to upgrade from
v0.24.14
to eitherv0.26.0
or newerWhat version of gazelle are you using?
v0.21.1
(
0.22,x
&v0.23.0
fail due to gazelle#1076)What version of Bazel are you using?
4.2.1
Does this issue reproduce with the latest releases of all the above?
Yes.
What operating system and processor architecture are you using?
debian linux, x86
What did you do?
Now try to run gazelle (or build):
There are 4 more like this. The error are in external build rules (e.g io_bazel_rules_docker (which is updated to the latest release 0.19.0).
What did you expect to see?
No error :)
What did you see instead?
Error in parts that I can't change. I guess this is due to ordering of things?
The text was updated successfully, but these errors were encountered: