Skip to content

UX: make --remote_download_output=minimal download the necessary files when invoking bazel run #11920

@sitaktif

Description

@sitaktif

Description of the problem / feature request:

When using remote build exection, calling bazel run sometarget --remote_download_output=minimal doesn't make sense: Bazel will not dowload all the files required to run sometarget.

I propose changing the behaviour of --remote_download_output=minimal to download files needed to run an action that is called with bazel run.

Feature requests: what underlying problem are you trying to solve with this feature?

I'm trying to improve the user experience of Bazel.

Not downloading the files needed to run a target passed to bazel run is never something that a user wants to do.

Any other information, logs, or outputs that you want to share?

I think the behavior would still be consistent with the meaning of --remote_download_output=minimal. The documentation says:

If set to 'minimal' doesn't download any remote build outputs to the local machine, except the ones required by local actions.

I believe it is fair to consider sometarget a local action when calling bazel run sometarget.

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)team-Remote-ExecIssues and PRs for the Execution (Remote) teamtype: feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions