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 Feb 1, 2025
1 parent d03d5e3 commit 31d23d1
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
load("@rules_go//go:def.bzl", "go_library")

go_library(
name = "tools",
srcs = ["deps.go"],
importpath = "github.com/buildbarn/bb-remote-execution/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 31d23d1

Please sign in to comment.