diff options
| author | Cole Faust <colefaust@google.com> | 2023-08-31 11:00:25 -0700 |
|---|---|---|
| committer | Cole Faust <colefaust@google.com> | 2023-08-31 11:00:25 -0700 |
| commit | 20f2030e29677e4cef5d2ac58ebb6b870e6fbcf5 (patch) | |
| tree | f41e82af68f0b3fb0fe09cf37c9b3df935ba6614 /bazel | |
| parent | 8bbe26cad78f2d36e113a356c3cfa5e8d37c8c16 (diff) | |
Use aquery results to determine if a file should be executable
Now that aquery includes this information.
Also added rm -f $out to some rules, because since they write files
by shell redirection, if the file existed before and was executable,
they wouldn't make the file non-executable and visa versa.
Fixes: 297366783
Test: m bazel_sandwich
Change-Id: Ie5b6c4275b162601f51deaec9912eea4be16988d
Diffstat (limited to 'bazel')
| -rw-r--r-- | bazel/aquery.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bazel/aquery.go b/bazel/aquery.go index d77d59acf..76cd97254 100644 --- a/bazel/aquery.go +++ b/bazel/aquery.go @@ -123,6 +123,7 @@ type BuildStatement struct { // Unlike most properties in BuildStatement, these paths must be relative to the root of // the whole out/ folder, instead of relative to ctx.Config().BazelContext.OutputBase() ImplicitDeps []string + IsExecutable bool } // A helper type for aquery processing which facilitates retrieval of path IDs from their @@ -560,6 +561,7 @@ func (a *aqueryArtifactHandler) fileWriteActionBuildStatement(actionEntry *analy Mnemonic: actionEntry.Mnemonic, InputDepsetHashes: depsetHashes, FileContents: actionEntry.FileContents, + IsExecutable: actionEntry.IsExecutable, }, nil } |
