Skip to content

Conversation

justbuchanan
Copy link
Contributor

Before this change, attempts to build the bazel extractor image fail with:

bazel build //kythe/extractors/bazel:docker

ERROR: error loading package '@@com_github_bazelbuild_bazelisk//': Unable to find package for @@build_bazel_rules_nodejs//:index.bzl: The repository '@@build_bazel_rules_nodejs' could not be resolved: Repository '@@build_bazel_rules_nodejs' is not defined.
ERROR: /usr/local/google/home/justinbuchanan/src/github/kythe/kythe/extractors/bazel/BUILD:3:13: error loading package '@@com_github_bazelbuild_bazelisk//': Unable to find package for @@build_bazel_rules_nodejs//:index.bzl: The repository '@@build_bazel_rules_nodejs' could not be resolved: Repository '@@build_bazel_rules_nodejs' is not defined. and referenced by '//kythe/extractors/bazel:docker'
ERROR: Analysis of target '//kythe/extractors/bazel:docker' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.330s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully

I copied the bazelisk download/install snippet from our presubmit-runner image.

@justbuchanan justbuchanan requested a review from a team March 6, 2024 21:50
@justbuchanan justbuchanan merged commit af62dce into kythe:master Mar 6, 2024
@justbuchanan justbuchanan deleted the fix-bazel-image branch March 6, 2024 22:50
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.

2 participants