Skip to content

[7.7.0] Add repository_ctx.original_name#27034

Merged
meteorcloudy merged 3 commits intobazelbuild:release-7.7.0from
meteorcloudy:7.7.0-orig-repo
Sep 23, 2025
Merged

[7.7.0] Add repository_ctx.original_name#27034
meteorcloudy merged 3 commits intobazelbuild:release-7.7.0from
meteorcloudy:7.7.0-orig-repo

Conversation

@meteorcloudy
Copy link
Copy Markdown
Member

@meteorcloudy meteorcloudy commented Sep 19, 2025

This new attribute contains the original value of the name attribute
at the instantiation site of the repo rule (e.g., rctx.original_name
would be foo if rctx.name is +ext+foo).

Fixes #24467

Closes #25121.

RELNOTES: Added repository_ctx.original_name, which contains the
original value of the name attribute as specified at the repo rule
call site.

PiperOrigin-RevId: 722731393
Change-Id: I2f7dada0c44b6bd4c0d2622fa1e97223382a8547
(cherry picked from commit 8bcfb06)

Fixes #27033

Context: this would help google-ml-infra/rules_ml_toolchain#84

fmeum and others added 2 commits September 19, 2025 11:18
This new attribute contains the original value of the `name` attribute
at the instantiation site of the repo rule (e.g., `rctx.original_name`
would be `foo` if `rctx.name` is `+ext+foo`).

Fixes bazelbuild#24467

Closes bazelbuild#25121.

RELNOTES: Added `repository_ctx.original_name`, which contains the
original value of the `name` attribute as specified at the repo rule
call site.

PiperOrigin-RevId: 722731393
Change-Id: I2f7dada0c44b6bd4c0d2622fa1e97223382a8547
(cherry picked from commit 8bcfb06)

Fixes bazelbuild#25147
@meteorcloudy meteorcloudy requested a review from a team as a code owner September 19, 2025 09:38
@meteorcloudy meteorcloudy requested a review from fmeum September 19, 2025 09:40
@github-actions github-actions Bot added awaiting-review PR is awaiting review from an assigned reviewer team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels Sep 19, 2025
Copy link
Copy Markdown
Collaborator

@fmeum fmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI failure seems to be preexisting.

@meteorcloudy meteorcloudy added this pull request to the merge queue Sep 23, 2025
Merged via the queue into bazelbuild:release-7.7.0 with commit 637094a Sep 23, 2025
50 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Sep 23, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants