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

golang: allow downloads during instalation of gRPC protobuf plugins #21614

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Nov 5, 2024

As described in #21529, the Go rules are setting GOPROXY=off during the invocations of go install to install the gRPC protobuf plugins because that is the default for GoSdkProcess. The plugin builds are failing because GOPROXY=off prevents go from contacting the Go module proxy to learn about module deprecations. (Unlike other uses of GoSdkProcess, the gRPC protobuf plugins are relying on go install to do a full build of the plugin sources, which is unlike the use of GoSdkProcess in the rest of the Go backend rules.)

Solution: Set allow_downloads=True (which is already done for a preceding go mod download) to allow go to contact the Go module proxy as needed by not setting GOPROXY=off.

Fixes #21529.

@tdyas tdyas added the category:bugfix Bug fixes for released features label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go codegen doesn't work
1 participant