From 0ce5d05f76989c4cc699e0dd6cd1f906a9e0f16d Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Fri, 12 Apr 2019 11:11:38 -0700 Subject: Support RuleBuilder.Sbox to wrap commands in sbox This essentially allows you to declare that everything in a directory will be created by the rule, and we'll ensure that your command actually writes out all of the claimed outputs, and remove any other files that previously existed in that directory. Bug: 144948629 Test: built-in tests Change-Id: I990dce2b3a0d89ebd2736ac1a0cadfb5864c6e73 Merged-In: I990dce2b3a0d89ebd2736ac1a0cadfb5864c6e73 (cherry picked from commit 633c50229544db07f48e75833cab655a294f677d) --- cmd/sbox/sbox.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/sbox/sbox.go') diff --git a/cmd/sbox/sbox.go b/cmd/sbox/sbox.go index 4167edb3..4ac92953 100644 --- a/cmd/sbox/sbox.go +++ b/cmd/sbox/sbox.go @@ -56,7 +56,7 @@ func usageViolation(violation string) { } fmt.Fprintf(os.Stderr, - "Usage: sbox -c --sandbox-path --output-root --overwrite [--depfile-out depFile] [...]\n"+ + "Usage: sbox -c --sandbox-path --output-root [--depfile-out depFile] [...]\n"+ "\n"+ "Deletes ,"+ "runs ,"+ -- cgit v1.2.3