Skip to content

[8.1.0] Add repository_ctx.original_name#25191

Merged
iancha1992 merged 1 commit intobazelbuild:release-8.1.0from
fmeum:release-8.1.0
Feb 5, 2025
Merged

[8.1.0] Add repository_ctx.original_name#25191
iancha1992 merged 1 commit intobazelbuild:release-8.1.0from
fmeum:release-8.1.0

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Feb 4, 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 #25147

@fmeum fmeum requested a review from a team as a code owner February 4, 2025 16:09
@github-actions github-actions Bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Feb 4, 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 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)
@iancha1992 iancha1992 added this pull request to the merge queue Feb 5, 2025
Merged via the queue into bazelbuild:release-8.1.0 with commit b016ff3 Feb 5, 2025
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 5, 2025
@fmeum fmeum deleted the release-8.1.0 branch February 5, 2025 14:53
meteorcloudy pushed a commit to meteorcloudy/bazel that referenced this pull request 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 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
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