From f72d9a4222725c89c0d2fd69588fae580734fe4e Mon Sep 17 00:00:00 2001 From: lexspoon Date: Tue, 1 Oct 2024 14:14:22 -0400 Subject: [PATCH] Add a plus sign to the output_groups option For people upgrading from earlier versions of rules_oci, it works out better to use `+tarball` than `tarball`. The latter will break builds using the older version of rules_oci, making it harder to upgrade incrementally. It's probably a good habit, anyway. When you want an extra output group to a build, you usually don't want to cancel all the output groups you don't know about. You just want to add the one new one that you do care about. --- docs/load.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/load.md b/docs/load.md index 447978f9..6631720f 100644 --- a/docs/load.md +++ b/docs/load.md @@ -41,7 +41,7 @@ so producing it only creates unnecessary load on the action cache. If needed, the `tarball` output group allows you to depend on the tar output from another rule. -On the command line, `bazel build //path/to:my_tarball --output_groups=tarball` +On the command line, `bazel build //path/to:my_tarball --output_groups=+tarball` or in a BUILD file: