commit | 3ac977b6b11720ce3e028c5b4da874677bca059b | [log] [tgz] |
---|---|---|
author | Matt Stark <msta@google.com> | Thu Dec 14 11:41:37 2023 +1100 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Dec 16 14:06:13 2023 +0000 |
tree | 341440da635610a6d1247c1ea38b797c1a3b3440 | |
parent | 939cdfb43ea8e38ea553704c318579bc6a01a0b5 [diff] |
Add ":installed" targets to bazel. `bazel build :foo_installed` is similar to running `bazel run :foo_install`. However, the main differences are: * If you change foo, then rerunning :foo_install reinstalls all transitive dependencies of foo. However, :foo_installed will only reinstall foo. * You can run it in a build action. * It's more compatible with --remote_download_toplevel, as we can guarantee that we actually have the file. BUG=b:304630062 TEST=portage/tools/run_tests.sh Force-Relevant-Builds: amd64-generic-bazel-cq Change-Id: I3cd9ed1f0b6423f27430c09165f873c19f6d74dd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/bazel/+/5125051 Reviewed-by: Li-Yu Yu <aaronyu@google.com> Auto-Submit: Matt Stark <msta@google.com> Tested-by: Matt Stark <msta@google.com> Commit-Queue: Matt Stark <msta@google.com>