From 2d93ebba117bbbdc1a736ef0603c2afd31fe2bf3 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Thu, 27 Jul 2023 23:46:24 +0000 Subject: [PATCH] Add GoStdlib mnemonic for special handling of '' This mnemonic has '' args, which would become literal empty when combined by strings.Join. To prevent this, add it to the special-handling function. Bug: 284483729 Test: N/A Change-Id: Ibd3c3ebc55284882e7336487319070b9710076d3 --- bazel/aquery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/aquery.go b/bazel/aquery.go index 3428328bd..2c080a11a 100644 --- a/bazel/aquery.go +++ b/bazel/aquery.go @@ -459,7 +459,7 @@ func (a *aqueryArtifactHandler) depsetContentHashes(inputDepsetIds []uint32) ([] // escapes the args received from aquery and creates a command string func commandString(actionEntry *analysis_v2_proto.Action) string { switch actionEntry.Mnemonic { - case "GoCompilePkg": + case "GoCompilePkg", "GoStdlib": argsEscaped := []string{} for _, arg := range actionEntry.Arguments { if arg == "" {