Skip to content

Conversation

@bazel-io
Copy link
Member

@bazel-io bazel-io commented Nov 6, 2025

%bazel_workspace% is used instead of the more conventional %workspace% to avoid changing the behavior of existing --repo_env usages in which %workspace% may already have a meaning.

RELNOTES: In environment variable values set via --repo_env, the substring %bazel_workspace% is now replaced with the absolute path of the current Bazel workspace. This can, for example, be used to make tools checked into the repository available on the PATH for repository rules.

Closes #25608.

PiperOrigin-RevId: 828862407
Change-Id: I644fbb25d80c5353e522c7184d7c57b2ac8bf04f

Commit 6dc16b9

`%bazel_workspace%` is used instead of the more conventional `%workspace%` to avoid changing the behavior of existing `--repo_env` usages in which `%workspace%` may already have a meaning.

RELNOTES: In environment variable values set via `--repo_env`, the substring `%bazel_workspace%` is now replaced with the absolute path of the current Bazel workspace. This can, for example, be used to make tools checked into the repository available on the `PATH` for repository rules.

Closes bazelbuild#25608.

PiperOrigin-RevId: 828862407
Change-Id: I644fbb25d80c5353e522c7184d7c57b2ac8bf04f
@bazel-io bazel-io added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label Nov 6, 2025
@bazel-io bazel-io requested a review from a team as a code owner November 6, 2025 10:33
@bazel-io bazel-io added the awaiting-review PR is awaiting review from an assigned reviewer label Nov 6, 2025
@bazel-io bazel-io requested a review from meteorcloudy November 6, 2025 10:33
@meteorcloudy meteorcloudy added this pull request to the merge queue Nov 6, 2025
Merged via the queue into bazelbuild:release-9.0.0 with commit 7c92585 Nov 6, 2025
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Nov 6, 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