Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix builtins_bzl_zip build when io_bazel is not the root module #24330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quic-torgil
Copy link

@quic-torgil quic-torgil commented Nov 14, 2024

When building bazel as a non root module the path needed by zip_builtins is external/%repo%/src/main/starlark/builtins_bzl instead of src/main/starlark/builtins_bzl.

This patch gives the zip_builtins script the dirname of the package build file and uses $location to resolve correct path.

When building bazel as a non root module the path needed by zip_builtins
is external/<repo>/src/main/starlark/builtins_bzl instead of
src/main/starlark/builtins_bzl.

This patch gives the zip_builtins script the dirname of the package
build file and uses $location to resolve correct path.

Signed-off-by: Torgil Svensson <[email protected]>
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Nov 14, 2024
@iancha1992 iancha1992 added the team-Starlark-Interpreter Issues involving the Starlark interpreter used by Bazel label Nov 14, 2024
@quic-torgil
Copy link
Author

@iancha1992 where is this PR in the queue?

The patch looks "fairly trivial" to me, I'm curios if there is any pitfalls here to watch out for.

@iancha1992
Copy link
Member

@quic-torgil this PR needs to be reviewed before it gets merged. Let me see if someone can respond. Thank you for being patient!

cc: @comius @meteorcloudy @Wyverald

@meteorcloudy
Copy link
Member

The patch looks good, but can you elaborate why you need to build builtins_bzl_zip build when bazel is not the root module? In general, the bazel repo is not supposed to be used as a dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-Starlark-Interpreter Issues involving the Starlark interpreter used by Bazel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants