Skip to content

Commit

Permalink
Fix tools/BUILD.bazel to make 'bazel cquery ...' work
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
moroten authored and EdSchouten committed Dec 20, 2024
1 parent 4e3e5a9 commit 8401896
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
load("@rules_go//go:def.bzl", "go_library")

go_library(
name = "tools",
srcs = ["deps.go"],
importpath = "github.com/buildbarn/bb-clientd/tools",
tags = ["manual"],
visibility = ["//visibility:public"],
deps = [
"@cc_mvdan_gofumpt//:gofumpt",
"@com_github_bazelbuild_buildtools//buildifier",
"@org_golang_x_lint//:lint",
],
)
# gazelle:ignore

0 comments on commit 8401896

Please sign in to comment.