Skip to content
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/tools/gopackagesdriver: pass Compiler and Arch in DriverResponse #3657

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

matloob
Copy link
Contributor

@matloob matloob commented Aug 14, 2023

go/packages is being changed to expect Compiler and Arch in its DriverResponse (see golang.org/cl/516917) because we can't expect the type of the types.Sizes returned by types.Sizes to be types.StdSizes. (The default it uses when Compiler and Arch aren't set is the set of types for gc,amd64, so there's no change in behavior if those fields aren't set, but we should set them. I'd also like to see if we can correctly provide the arch assuming it's not amd64. I left a question in the code asking about that.

For #3656

go/packages is being changed to expect Compiler and Arch in its
DriverResponse (see golang.org/cl/516917) because we can't expect the
type of the types.Sizes returned by types.Sizes to be types.StdSizes.
(The default it uses when Compiler and Arch aren't set is the set of
types for gc,amd64, so there's no change in behavior if those fields
aren't set, but we should set them. I'd also like to see if we can
correctly provide the arch assuming it's not amd64. I left a question
in the code asking about that.
@matloob matloob merged commit 6e10f8c into bazelbuild:master Aug 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants