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

Various bits of cleanup detected when using Go Workspaces #17462

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented May 25, 2023

Description

TLDR with many modules the versions included in each diverged quite a bit. Attempting to use Go Workspaces was producing a bunch of errors.

This commit:

  1. Fixes envoy-library-references.sh to work again
  2. Ensures we are pulling in [email protected] everywhere (previously it was at that version in some modules and others were much older)
  3. Remove one usage of golang/protobuf that caused us to have a direct dependency on it.
  4. Remove deprecated usage of the Endpoint field in the grpc resolver.Target struct. The current version of grpc (v1.55.0) has removed that field and recommended replacement with URL.Opaque and calls to the Endpoint() func when needing to consume the previous field.
  5. go work init <all the paths to go.mod files> && go work sync. This syncrhonized versions of dependencies from the main workspace/root module to all submodules
  6. Updated .gitignore to ignore the go.work and go.work.sum files. This seems to be standard practice at the moment.
  7. Added linter rules to prevent future usage of golang/protobuf
  8. Modified a few targets in the Makefile to more consistently operate on multiple Go modules (including the lint target) so that the previously mentioned linter rules get consulted locally.

Testing & Reproduction steps

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

@mkeeler mkeeler requested review from a team and freddygv and removed request for a team May 25, 2023 13:41
@github-actions github-actions bot added pr/dependencies PR specifically updates dependencies of project theme/api Relating to the HTTP API interface theme/envoy/xds Related to Envoy support labels May 25, 2023
@mkeeler mkeeler requested review from a team and erichaberkorn and removed request for freddygv and a team May 25, 2023 13:41
@mkeeler mkeeler added pr/no-changelog PR does not need a corresponding .changelog entry pr/no-backport labels May 25, 2023
@mkeeler mkeeler force-pushed the workspaces branch 3 times, most recently from 8a84638 to a1af876 Compare June 5, 2023 18:46
TLDR with many modules the versions included in each diverged quite a bit. Attempting to use Go Workspaces produces a bunch of errors.

This commit:

1. Fixes envoy-library-references.sh to work again
2. Ensures we are pulling in [email protected] everywhere (previously it was at that version in some modules and others were much older)
3. Remove one usage of golang/protobuf that caused us to have a direct dependency on it.
4. Remove deprecated usage of the Endpoint field in the grpc resolver.Target struct. The current version of grpc (v1.55.0) has removed that field and recommended replacement with URL.Opaque and calls to the Endpoint() func when needing to consume the previous field.
4. `go work init <all the paths to go.mod files>` && `go work sync`. This syncrhonized versions of dependencies from the main workspace/root module to all submodules
5. Updated .gitignore to ignore the go.work and go.work.sum files. This seems to be standard practice at the moment.
6. Update doc comments in protoc-gen-consul-rate-limit to be go fmt compatible
7. Upgraded makefile infra to perform linting, testing and go mod tidy on all modules in a flexible manner.
8. Updated linter rules to prevent usage of golang/protobuf
9. Updated a leader peering test to account for an extra colon in a grpc error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/dependencies PR specifically updates dependencies of project pr/no-backport pr/no-changelog PR does not need a corresponding .changelog entry theme/api Relating to the HTTP API interface theme/envoy/xds Related to Envoy support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants