Skip to content

Add exports_files in http_file BUILD.bazel#28859

Open
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/add-exports_files-in-http_file-build.bazel
Open

Add exports_files in http_file BUILD.bazel#28859
keith wants to merge 1 commit intobazelbuild:masterfrom
keith:ks/add-exports_files-in-http_file-build.bazel

Conversation

@keith
Copy link
Member

@keith keith commented Mar 3, 2026

Without this, with --incompatible_no_implicit_file_export you are no
longer allowed to directly depend on the downloaded file. Directly
depending on the downloaded file is required if you want to use
executable = True, and then make that file runnable with bazel run
where that doesn't work if you attempt to run the filegroup.

Exporting this file seems pretty safe since the user can also control
its path.

@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Mar 3, 2026
@keith keith force-pushed the ks/add-exports_files-in-http_file-build.bazel branch from 10b40bd to 7fabeda Compare March 3, 2026 01:29
@keith keith force-pushed the ks/add-exports_files-in-http_file-build.bazel branch from 7fabeda to 2142bed Compare March 3, 2026 17:09
Without this, with `--incompatible_no_implicit_file_export` you are no
longer allowed to directly depend on the downloaded file. Directly
depending on the downloaded file is required if you want to use
`executable = True`, and then make that file runnable with `bazel run`
where that doesn't work if you attempt to run the `filegroup`.

Exporting this file seems pretty safe since the user can also control
its path.
@keith keith force-pushed the ks/add-exports_files-in-http_file-build.bazel branch from 2142bed to 43cf867 Compare March 3, 2026 17:20
Copy link
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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants