Open zecke opened 1 week ago
What if we handle this like the go_embed directive and update the x_defs?
Yeah, I'm all for treating this exactly like Go itself does, I just don't know how it's wired up exactly. Happy to review a change that goes beyond skipping.
Yeah, I'm all for treating this exactly like Go itself does, I just don't know how it's wired up exactly. Happy to review a change that goes beyond skipping.
From what I can tell is that one of the challenges of rules_go is that the builder is not using go build
. Which means we don't benefit from some of the checks (e.g. checking if the flag exists, if one can link an internal package).
Go 1.21 introduced support for godebug lines in go.mod and go.work files. Skip over these lines instead of failing
Related #1945
What type of PR is this?
What package or component does this PR mostly affect?
What does this PR do? Why is it needed?
Which issues(s) does this PR fix?
Fixes #
Other notes for review