Skip to content

Cannot build using bazel 8 #131

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

Closed
tekumara opened this issue Dec 13, 2024 · 3 comments · Fixed by #132 or #134
Closed

Cannot build using bazel 8 #131

tekumara opened this issue Dec 13, 2024 · 3 comments · Fixed by #132 or #134

Comments

@tekumara
Copy link
Contributor

❯ bazel build //:fizzbee
2024/12/13 20:52:44 Downloading https://releases.bazel.build/8.0.0/release/bazel-8.0.0-darwin-arm64...
Downloading: 56 MB out of 56 MB (100%) 
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: Couldn't auto load rules or symbols, because no dependency on module/repository 'rules_android' found. This will result in a failure if there's a reference to those rules or symbols.
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:fizzbee': error loading package '': Unable to find package for @@[unknown repo 'io_bazel_rules_go' requested from @@]//go:def.bzl: The repository '@@[unknown repo 'io_bazel_rules_go' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_go' 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: error loading package '': Unable to find package for @@[unknown repo 'io_bazel_rules_go' requested from @@]//go:def.bzl: The repository '@@[unknown repo 'io_bazel_rules_go' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_go' 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.
INFO: Elapsed time: 16.963s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
@tekumara
Copy link
Contributor Author

As a workaround I've told bazelisk to use 7.x, ie:

echo 7.x > .bazelversion

@jp-fizzbee
Copy link
Collaborator

Oops, I don't know why I closed this issue. Reopening it. To track the proper fix.

@jp-fizzbee
Copy link
Collaborator

@tekumara Would you be able to help migrate to Bzlmod

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 a pull request may close this issue.

2 participants