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

bazel: fix "missing strict dependencies" build issue #72

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

sergiitk
Copy link
Contributor

@sergiitk sergiitk commented Nov 9, 2023

Solves the build issue, likely caused by unpinned transitive dependencies of protoc-gen-validate:

compilepkg: missing strict dependencies:
/__w/_temp/tmp/_bazel_vsts_azpcontainer/1ae192bdedcc5135b20541cee0b7ccdb/sandbox/processwrapper-sandbox/216/execroot/com_github_cncf_xds/external/com_github_spf13_afero/util.go: import of "golang.org/x/text/unicode/norm"

The problem is solved by matching protoc-gen-validate with the version used by Envoy:

  • bazel version updated from 4.2.2 to 6.3.2 (updated bazel-gazelle fails with 4.2.2)
  • repo github.com/bazelbuild/bazel-gazelle updated from v0.23.0 to v0.31.1
  • repo github.com/bazelbuild/rules_go updated from v0.27.0 to v0.39.1
  • go_register_toolchains(go_version) GO_VERSION updated from 1.16.6 to 1.20.2
  • go_repository com_github_lyft_protoc_gen_star upgraded from v0.5.1 to v2.0.1
  • go_repository golang.org/x/net pinned to v0.0.0-20200226121028-0de0cce0169b
  • go_repository golang.org/x/text pinned to v0.3.3
  • go_repository google.golang.org/protobuf pinned to v1.28.1

@sergiitk sergiitk force-pushed the bazel-build-fix branch 2 times, most recently from 4b8e039 to b50be00 Compare November 9, 2023 05:50
@sergiitk sergiitk marked this pull request as ready for review November 9, 2023 07:39
Before: protoc-gen-go v1.25.0
After:  protoc-gen-go v1.28.1

Signed-off-by: Sergii Tkachenko <[email protected]>
@sergiitk
Copy link
Contributor Author

sergiitk commented Nov 9, 2023

@adisuissa - please review - this unblocks all builds in this repo.

@sergiitk sergiitk mentioned this pull request Nov 9, 2023
Copy link

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great detective work!
Thanks!

@adisuissa adisuissa merged commit 523115e into cncf:main Nov 9, 2023
2 checks passed
@sergiitk sergiitk deleted the bazel-build-fix branch November 9, 2023 18:19
@sergiitk sergiitk mentioned this pull request Nov 9, 2023
sergiitk added a commit to sergiitk/envoy that referenced this pull request Nov 10, 2023
cncf/xds@e9ce688...523115e

- cel: add a description to the AST (cncf/xds#61)
- Bump bazel to 4.2.2 (cncf/xds#68)
- bazel: fix "missing strict dependencies" build issue (cncf/xds#72)
  - bazel version updated from `4.2.2` to `6.3.2`
  - `protoc-gen-validate` dependencies updated to match Envoy's

Signed-off-by: Sergii Tkachenko <[email protected]>
mattklein123 pushed a commit to envoyproxy/envoy that referenced this pull request Nov 13, 2023
cncf/xds@e9ce688...523115e

- cel: add a description to the AST (cncf/xds#61)
- Bump bazel to 4.2.2 (cncf/xds#68)
- bazel: fix "missing strict dependencies" build issue (cncf/xds#72)
  - bazel version updated from `4.2.2` to `6.3.2`
  - `protoc-gen-validate` dependencies updated to match Envoy's

Signed-off-by: Sergii Tkachenko <[email protected]>
update-envoy bot added a commit to envoyproxy/data-plane-api that referenced this pull request Nov 13, 2023
cncf/xds@e9ce688...523115e

- cel: add a description to the AST (cncf/xds#61)
- Bump bazel to 4.2.2 (cncf/xds#68)
- bazel: fix "missing strict dependencies" build issue (cncf/xds#72)
  - bazel version updated from `4.2.2` to `6.3.2`
  - `protoc-gen-validate` dependencies updated to match Envoy's

Signed-off-by: Sergii Tkachenko <[email protected]>

Mirrored from https://github.com/envoyproxy/envoy @ b500165160ce60020ad55bf6b10c6d5cc0b5f54c
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.

None yet

2 participants