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 (Cherry-pick of #21614) #21856

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

WorkerPants
Copy link
Member

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.

…21614)

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.
@WorkerPants WorkerPants added this to the 2.24.x milestone Jan 19, 2025
@WorkerPants WorkerPants added the category:bugfix Bug fixes for released features label Jan 19, 2025
@WorkerPants WorkerPants requested review from benjyw and tdyas January 19, 2025 00:52
@tdyas tdyas added the release-notes:not-required PR doesn't require mention in release notes label Jan 19, 2025
@tdyas tdyas merged commit b9ff433 into 2.24.x Jan 19, 2025
24 checks passed
@tdyas tdyas deleted the cherry-pick-21614-to-2.24.x branch January 19, 2025 04:32
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 release-notes:not-required PR doesn't require mention in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants