bazelbuild / bazelbuild/bazel

Validate remote and commit options in Bzlmod git_repository needs an incompatibility flag.

Open
#31,100 1 comment 0 reactions 0 assignees View on GitHub
area-Bzlmod type: feature request untriaged
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the feature request:

Previously valid git URIs (like `git@gitlab.example.com:company/internal/groups/fancy-bazel-module.git`) are now rejected, and this causes existing, working registries to quit working.

### Which category does this issue belong to?

External Dependency

### What underlying problem are you trying to solve with this feature?

We'd like a way to ensure we retain compatibility with this breaking change on the 9.x.x branch, to ease migration.

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

Linux

### What is the output of `bazel info release`?

release 10.0.0-pre.20260902.1

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

```

### 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 locating the Bzlmod git_repository handling for remote and commit validation, then inspect how incompatibility flags are represented elsewhere in Bazel. Done means the requested flag preserves compatibility for previously valid git URIs on the 9.x.x branch and has coverage for the affected validation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.