Skip to content

Commit

Permalink
Fix incremental build of to bootstrap Gazelle
Browse files Browse the repository at this point in the history
The list of `go_repository_tools_srcs` contained an invalid Label, which
silently broke change detection for bootstrap Gazelle due to
bazelbuild/bazel#13441.
  • Loading branch information
fmeum committed May 9, 2023
1 parent fe5140f commit 4b9010f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/go_repository_tools_srcs.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Code generated by list_repository_tools_srcs.go; DO NOT EDIT.
# regenerate with `go run internal/list_repository_tools_srcs.go -dir $PWD -generate internal/go_repository_tools_srcs.bzl`
GO_REPOSITORY_TOOLS_SRCS = [
Label("//BUILD.bazel"),
Label("//:BUILD.bazel"),
Label("//cmd:BUILD.bazel"),
Label("//cmd/autogazelle:BUILD.bazel"),
Label("//cmd/autogazelle:autogazelle.go"),
Expand Down
2 changes: 1 addition & 1 deletion internal/list_repository_tools_srcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {
if i := strings.LastIndexByte(label, '/'); i >= 0 {
label = fmt.Sprintf(`Label("//%s:%s")`, label[:i], label[i+1:])
} else {
label = fmt.Sprintf(`Label("//%s")`, label)
label = fmt.Sprintf(`Label("//:%s")`, label)
}
labels = append(labels, label)
}
Expand Down

0 comments on commit 4b9010f

Please sign in to comment.