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

Cloud Robotics Core failing on Bazel CI due to "gomodules.xyz/jsonpatch" change #53

Closed
meteorcloudy opened this issue Sep 16, 2020 · 7 comments

Comments

@meteorcloudy
Copy link
Contributor

https://buildkite.com/bazel/cloud-robotics-core/builds/3782#03762913-064b-414d-9df1-a794ec16bd6e

(00:27:10) ERROR: An error occurred during the fetch of repository 'xyz_gomodules_jsonpatch':
   Traceback (most recent call last):
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/external/bazel_gazelle/internal/go_repository.bzl", line 126, column 17, in _go_repository_impl
		fail("failed to fetch %s: %s" % (ctx.name, result.stderr))
Error in fail: failed to fetch xyz_gomodules_jsonpatch: fetch_repo: unrecognized import path "gomodules.xyz/jsonpatch"
(00:27:10) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/external/io_k8s_sigs_controller_runtime/pkg/webhook/admission/BUILD.bazel:3:11: @io_k8s_sigs_controller_runtime//pkg/webhook/admission:go_default_library depends on @xyz_gomodules_jsonpatch//v2:go_default_library in repository @xyz_gomodules_jsonpatch which failed to fetch. no such package '@xyz_gomodules_jsonpatch//v2': failed to fetch xyz_gomodules_jsonpatch: fetch_repo: unrecognized import path "gomodules.xyz/jsonpatch"

It looks like the required module is no longer there?

@meteorcloudy
Copy link
Contributor Author

/cc @drigz

@ensonic
Copy link
Contributor

ensonic commented Sep 16, 2020

Isn't the rootcause further up:
(00:26:48) WARNING: Download from https://mirror.bazel.build/github.com/google/protobuf/archive/v3.11.2.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found

@meteorcloudy
Copy link
Contributor Author

That's not the reason of this failure, you can see the same warning message in a successful build:
https://buildkite.com/bazel/cloud-robotics-core/builds/3781#14c44f5c-a7e1-46fd-b0e5-e67e33e90c8b
It won't be a problem because if the artifact is not actually on bazel-mirror then the original path will be used.

@meteorcloudy
Copy link
Contributor Author

jsonpatch doesn't seem to exist at https://gomodules.xyz/, did it get renamed to jsonpatch-gen?

@faximan
Copy link
Contributor

faximan commented Sep 16, 2020 via email

@meteorcloudy
Copy link
Contributor Author

Thanks for the fix!

@meteorcloudy
Copy link
Contributor Author

It's green on Bazel CI again: https://buildkite.com/bazel/cloud-robotics-core/builds/3784

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

No branches or pull requests

3 participants