-
-
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
Archive mode does not match when pure = off #4197
Comments
Have the same issue. Trying to update rules_go from 0.50.1 -> 0.51.0 and getting a build failure:
The target is defined like this (via a layer of macros): go_binary(
name = binary_name,
embed = binary_embed,
goarch = "amd64",
goos = "linux",
race = "on",
tags = ["manual"],
visibility = ["//visibility:public"],
x_defs = _x_defs,
)
|
I think that this broke in 5933f87 since We could try to always use I will also send a Bazel PR to add the provider type to the debug representation. |
Sorry for the breakage, sounds like we may be missing some coverage :) I can probably take a look in the next few days unless @fmeum you get to it first? |
I couldn't figure out a way to repro (if yall have an easy repro to add to rules_go, let's do it) but hopefully #4203 should fix it |
What version of rules_go are you using?
0.51.0
What version of gazelle are you using?
0.40.0
What version of Bazel are you using?
Bazel 8.0.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Darwin/ARM
Any other potentially useful information about your toolchain?
What did you do?
When crosscompiling a
go_binary
with goos, goarch, and pure = "off" I'm getting a mode mismatch error.This error happens on both our CI runner (linux/amd) and locally on a M1 macbook.
What did you expect to see?
The target should build without error. This worked in 0.50.1.
What did you see instead?
If I print
a.source.mode
andgo.mode
from this line, I get the same struct values.The text was updated successfully, but these errors were encountered: