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

Add a flag to force Bazel to download certain artifacts when using --… #15870

Merged
merged 1 commit into from
Jul 14, 2022

Commits on Jul 13, 2022

  1. Add a flag to force Bazel to download certain artifacts when using --…

    …remote_download_minimal
    
    When using --remote_download_minimal Bazel only downloads to the client the minimum number of artifacts necessary for the build to succeed. This can be sometimes problematic when local development (i.e. IDE) requires some artifacts to do local work (e.g. syntax completion). We add a flag --experimental_remote_download_regex that allow specifying a regular expression that will force certain artifacts to be forced to downloaded.
    
    Tested locally that syntax errors disappear in IntelliJ when compiling Bazel itself with --remote_download_minimal and --experimental_remote_download_regex=".*jar$", also included an integration test with several cases.
    
    Signed-off-by: Luis Fernando Pino Duque <[email protected]>
    
    Closes bazelbuild#15638.
    
    PiperOrigin-RevId: 460672954
    Change-Id: I3a4f18d046d2d91603a276f16173ad2a253480dd
    lfpino authored and “Gowroji committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    1f50b9a View commit details
    Browse the repository at this point in the history