Skip to content

Commit

Permalink
Don't include new bindir when generating bazel files
Browse files Browse the repository at this point in the history
This could pick up files from vendored go and include them in bazel

We can't (easily) ignore "bin" also since we have other dirs called
"bin" which we don't want to ignore.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
  • Loading branch information
SgtCoDFish committed Jun 20, 2022
1 parent 6cdb46d commit 25b5e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/build/.kazelcfg.json
@@ -1,4 +1,5 @@
{
"GoPrefix": "github.com/cert-manager/cert-manager",
"AddSourcesRules": true
"AddSourcesRules": true,
"SkippedPaths": ["_bin"]
}
1 change: 1 addition & 0 deletions hack/update-bazel.sh
Expand Up @@ -42,6 +42,7 @@ fi

set -o xtrace
"$gazelle" fix \
--exclude=_bin \
--external=external \
--go_naming_convention=go_default_library

Expand Down

0 comments on commit 25b5e74

Please sign in to comment.