Skip to content

Commit

Permalink
Fix bazel query scope not being used (#3688)
Browse files Browse the repository at this point in the history
  • Loading branch information
rastenis authored Nov 10, 2023
1 parent d8bf98b commit 6c839df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/tools/gopackagesdriver/bazel_json_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ func (b *BazelJSONBuilder) queryFromRequests(requests ...string) string {
if strings.HasSuffix(request, ".go") {
f := strings.TrimPrefix(request, "file=")
result = b.fileQuery(f)
} else if bazelQueryScope != "" {
result = b.packageQuery(request)
} else if isLocalPattern(request) {
result = b.localQuery(request)
} else if request == "builtin" || request == "std" {
result = fmt.Sprintf(RulesGoStdlibLabel)
} else if bazelQueryScope != "" {
result = b.packageQuery(request)
}

if result != "" {
Expand Down

0 comments on commit 6c839df

Please sign in to comment.