Skip to content

Conversation

@rickeylev
Copy link
Contributor

This basically makes it usable with the downloaded runtimes rules_python makes available,
which reference their runtimes as e.g. @python_3_11//:python.

The issue was the code to construct the label was leaving a trailing "/" when the the target being checked at the root of the workspace. To fix, just omit the trailing slash when the package name is empty to prevent the trailing slash.

Work towards #17773

@rickeylev rickeylev force-pushed the external.repo.py.disallow.native branch 3 times, most recently from ef5a377 to afc9170 Compare December 13, 2023 19:46
…mpty package

This basically makes it usable with the downloaded runtimes rules_python
makes available. The issue was the code to construct the label was
leaving a trailing "/" when the the target being checked at the root
of the workspace. To fix, just omit the trailing slash when
the package name is empty to prevent the trailing slash.

Work towards bazelbuild#17773
@rickeylev rickeylev force-pushed the external.repo.py.disallow.native branch from afc9170 to c5f6e2f Compare December 13, 2023 20:52
@rickeylev rickeylev deleted the external.repo.py.disallow.native branch December 14, 2023 23:57
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Jan 17, 2024
…evel external repo targets

This basically makes it usable with the downloaded runtimes rules_python makes
available, which reference their runtimes as e.g. `@python_3_11//:python`.

The issue was the code to construct the label was leaving a trailing "/" when
the the target being checked at the root of the workspace. To fix, just omit
the trailing slash when the package name is empty to prevent the trailing
slash.

Work towards bazelbuild#17773

Closes bazelbuild#20516

PiperOrigin-RevId: 591053422
Change-Id: I7790df2db10278844ae2b36cfe671de03164972f
github-merge-queue bot pushed a commit that referenced this pull request Jan 17, 2024
…or top-level external repo targets (#20923)

This basically makes it usable with the downloaded runtimes rules_python
makes
available, which reference their runtimes as e.g.
`@python_3_11//:python`.

The issue was the code to construct the label was leaving a trailing "/"
when
the the target being checked at the root of the workspace. To fix, just
omit
the trailing slash when the package name is empty to prevent the
trailing
slash.

Work towards #17773

Closes #20516

Commit
1533cd1

PiperOrigin-RevId: 591053422
Change-Id: I7790df2db10278844ae2b36cfe671de03164972f

Co-authored-by: Richard Levasseur <[email protected]>
@iancha1992
Copy link
Member

The changes in this PR have been included in Bazel 7.1.0 RC1. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants