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 CI]Error loading external package: Both '--enable_bzlmod' and '--enable_workspace' are disabled, but one must be enabled to fetch external dependencies #477

Open
sgowroji opened this issue Sep 2, 2024 · 0 comments

Comments

@sgowroji
Copy link
Member

sgowroji commented Sep 2, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4093#0191abcf-6360-4d78-8ab8-5aea2636dbb1

Platform: Ubuntu

Logs:

ERROR: �[0mSkipping '//...': error loading package under directory '': error loading package 'web/versioned': Unable to find package for @@[unknown repo 'bazel_skylib' requested from @@]//:bzl_library.bzl: The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved: No repository visible as '@bazel_skylib' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration..
ERROR: �[0merror loading package under directory '': error loading package 'web/versioned': Unable to find package for @@[unknown repo 'bazel_skylib' requested from @@]//:bzl_library.bzl: The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved: No repository visible as '@bazel_skylib' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration..

Culprit: bazelbuild/bazel@5881c38

Note : This issue is due to bazelbuild/bazel#23023. After --enable_workspace is flipped to false, users have to explicitly specify it where it's needed, or fully migrate to Bzlmod.

CC Greenteam @fweikert

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

1 participant