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: Update all dependencies to latest #163

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

minor-fixes
Copy link
Contributor

This change attempts to update all third-party dependencies to their latest versions in an attempt to resolve import issues resulting from the collision of the genproto
migration
and importing Go repositories in a Bazel workspace.

This was done by running:

go get -u ./...
go run cloud.google.com/go/internal/aliasfix/cmd/aliasfix@latest .
go mod tidy

Tested:

  • go build ./... still works
  • go test ./... still passes

This change attempts to update all third-party dependencies to their
latest versions in an attempt to resolve import issues resulting from
the collision of the [genproto
migration](https://code.googlesource.com/gocloud/+/refs/heads/main/migration.md)
and importing Go repositories in a Bazel workspace.

This was done by running:

```
go get -u ./...
go run cloud.google.com/go/internal/aliasfix/cmd/aliasfix@latest .
go mod tidy
```

Tested:
* `go build ./...` still works
* `go test ./...` still passes
minor-fixes added a commit to enfabrica/enkit that referenced this pull request Apr 24, 2023
`github.com/buildbarn/bb-remote-execution` defines an RPC service that we'd like to implement. We can:

* depend on this repo as a dependency to use the protos within
* copy the protos and their transitive imports into enkit and author our own BUILD files

This change attempts to do the former. This came with some complications:

* Pulling in this dep upgraded GCP modules under `cloud.google.com/go`, which causes issues due to the [genproto migration](https://code.googlesource.com/gocloud/+/refs/heads/main/migration.md) that is currently underway. To resolve this, this PR:
  * runs the fixer tool on our code to update import paths, plus gazelle to fix BUILD files
  * pulls in a fork of `GoogleCloudPlatform/cloud-build-notifiers`, with updated deps and import paths (once GoogleCloudPlatform/cloud-build-notifiers#163 is merged, this fork can be dropped)
  * pulls in an updated version of `go_googleapis`. Usually `rules_go` does this for us, but we needed new datastore protos to be compatible with the updated datastore module, and so we must specify the version ourselves and also generate the patches that `rules_go` usually does.
* `github.com/bazelbuild/remote-apis` has BUILD files that reference `@googleapis` instead of `@go_googleapis`; this is usually patched in the buildbarn ecosystem, but we can't use that patch verbatim due to our updated version of `@go_googleapis` - so this change adds a slightly modified version of this patch.

Tested: `bazel test //... -k` works
@prabenzom
Copy link
Contributor

/gcbrun

@Aric1088 Aric1088 self-requested a review June 5, 2023 17:27
@monicacinom monicacinom merged commit 1d1284d into GoogleCloudPlatform:master Jun 8, 2023
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.

3 participants