-
Notifications
You must be signed in to change notification settings - Fork 18k
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
internal/buildcfg: regabireflect breaks GOENV configuration loading #46815
Comments
If I'm understanding this correctly, is the problem that Looking at this more closely... is the issue just that I'll try that. |
@mknyszek I'm not familiar with this code but it seemed to me that the new |
@tonistiigi Ah OK, I think I understand. The issue (as you're describing) is that That seems... a little more complicated to fix (and yeah just doing what I did doesn't seem to fix it -- |
@mdempsky might be able to help a little with this? He reviewed some of the changes to |
The existing division of responsibilities here is still messy. I'll take a look at how to improve it. |
I think the cleanest way to fix this is to move the Does have concerns with:
These would be natural consequences of eliminating the code duplication here, and I think would be nice for consistency. But if anyone thinks these aren't desirable or at least they shouldn't change this late in the release cycle, I can keep the existing behavior for either or both of those cases. I suspect 1 is uncontentious, but that folks might be more hesitant about 2. |
Change https://golang.org/cl/329655 mentions this issue: |
IMO, I'm not sure whether |
Change https://golang.org/cl/329930 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Only with 1.17. The regression point is at 8865548
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Successful build
What did you see instead?
The issue seems to be that
go/src/internal/buildcfg/cfg.go
Lines 24 to 27 in 45f251a
cmd/go/internal/cfg
. The same issue appears with changes to the default config file.The issue does not appear if I disable
regabireflect
or ifexport GOARCH=arm64
The text was updated successfully, but these errors were encountered: