Skip to content

deps: Get repositories.bzl in sync with go.mod #4316

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

Merged
merged 3 commits into from
Apr 11, 2025

Conversation

adam-azarchs
Copy link
Contributor

Bump the versions of dependencies in repositories.bzl to match what's in
go.mod.

Specifically bumps:

  • golang.org/x/sys
  • google.golang.org/protobuf
  • google.golang.org/grpc/cmd/protoc-gen-go-grpc
  • google.golang.org/genproto
  • github.com/golang/mock

Additionally add features to the releaser tool for updating to a specific version, rather than latest, so we can avoid further modifications to go.mod.

Fixes #4262

We need to update repositories.bzl to stay in sync with go.mod, but
ideally we don't want to avoid updates in go.mod. This requires
updating the tool to be able to request a specific version rather than
just updating to the latest.

When requesting a package at a specific version, the comment should not
claim that it was "latest" as of today.
Bump the versions of dependencies in repositories.bzl to match what's in
go.mod.

Specifically bumps:

  - golang.org/x/sys
  - google.golang.org/protobuf
  - google.golang.org/grpc/cmd/protoc-gen-go-grpc
  - google.golang.org/genproto
  - github.com/golang/mock

Closes bazel-contrib#4262
@adam-azarchs adam-azarchs force-pushed the azarchs/sync-repositories branch from 211a6bf to f10d0f8 Compare April 11, 2025 20:58
@adam-azarchs
Copy link
Contributor Author

Some examples are failing to compile with the updated grpc. Which is weird because they should have been failing already under with bzlmod, where they'd have been using what's in go.mod already.

@adam-azarchs
Copy link
Contributor Author

adam-azarchs commented Apr 11, 2025

I guess maybe I'll just revert the changes to protoc-gen-go-grpc. I don't think there are breaking changes in the other bumps.

Breaks some tests, so not unlikely that it would also break other people.
@fmeum fmeum enabled auto-merge (squash) April 11, 2025 21:57
@fmeum fmeum merged commit 8251e45 into bazel-contrib:master Apr 11, 2025
1 check passed
@adam-azarchs adam-azarchs deleted the azarchs/sync-repositories branch April 11, 2025 22:23
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.

go.mod out of sync with go/private/repositories.bzl
2 participants