Skip to content

Commit ff8c80c

Browse files
morotenEdSchouten
authored andcommitted
Fix tools/BUILD.bazel to make 'bazel cquery ...' work
ibazel (https://github.com/bazelbuild/bazel-watcher/) is running `bazel cquery ...` which failed when there are executable targets in the deps attribute of a go_library. This was never checked in CI because of the manual tag of the tools target.
1 parent 078d9d7 commit ff8c80c

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

tools/BUILD.bazel

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
2-
load("@rules_go//go:def.bzl", "go_library")
1+
# gazelle:ignore
32

4-
go_library(
5-
name = "tools",
6-
srcs = ["deps.go"],
7-
importpath = "github.com/buildbarn/bb-storage/tools",
8-
tags = ["manual"],
9-
visibility = ["//visibility:public"],
10-
deps = [
11-
"@cc_mvdan_gofumpt//:gofumpt",
12-
"@com_github_bazelbuild_buildtools//buildifier",
13-
"@org_golang_x_lint//:lint",
14-
],
15-
)
3+
load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
164

175
# When built with --stamp, creates a non-deterministic output file for pushing images to a remote registry.
186
# With --nostamp, produces a deterministic output so dependents get cache hits.

0 commit comments

Comments
 (0)