bazelbuild / bazelbuild/bazel

[8.0.0] invalid repository name 'rules_jvm_external~~maven~unpinned_contrib_rules_jvm_deps'

Open
#24,947 1 comment 0 reactions 0 assignees View on GitHub
more data needed type: bug untriaged
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the bug:

When I migrate to 8.0.0 and also 8.0.1rc1, it broke our build with the following error.

`ERROR: /private/var/tmp/_bazel_nl/54456b41c0397f1af3a7ca068f37ad86/external/contrib_rules_jvm_deps/BUILD.bazel:3598:6: @@contrib_rules_jvm_deps//:pin: invalid label '@@rules_jvm_external~~maven~unpinned_contrib_rules_jvm_deps//:pin' in attribute 'actual' of 'alias': invalid repository name 'rules_jvm_external~~maven~unpinned_contrib_rules_jvm_deps': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '+'
`

### 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.

_No response_

### Which operating system are you running Bazel on?

macos

### What is the output of `bazel info 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` ?

```text

```

### 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_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure on macOS with Bazel 8.0.0 or 8.0.1rc1, then inspect external/contrib_rules_jvm_deps/BUILD.bazel around line 3598 and the :pin alias. Done means identifying the regression and restoring valid repository naming, with a regression test covering the reported invalid label.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.