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 8.0.0: local_repository does not define repo name #24787

Open
neilconway opened this issue Dec 22, 2024 · 1 comment
Open

Bazel 8.0.0: local_repository does not define repo name #24787

neilconway opened this issue Dec 22, 2024 · 1 comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: bug untriaged

Comments

@neilconway
Copy link

Description of the bug:

In Bazel 8.0.0 (with modules disabled and workspaces enabled), if repo2 is included as a local_repository of repo1, the label //:xyz in repo2 can't be used.

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

https://github.com/neilconway/bazel-local-repository-repro

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

release 8.0.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@satyanandak satyanandak added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label Dec 23, 2024
@Wyverald
Copy link
Member

Your .bazelrc file isn't actually taking effect. Each line needs to start with common (so common --enable_workspace, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: bug untriaged
Projects
None yet
Development

No branches or pull requests

5 participants