forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let nogo linters use the right golang.org/x/tools dependency
Instruct gazelle with an explicit mapping directive to use the right golang.org/x/tools dependency for the Analyzer interface which is also used by nogo to load the custom analyzers. Since gazelle now does the correct mapping, all special handling of files with a `#gazelle: ignore` annotation is no longer necessary. The BUILD.bazel files for analyzers are now generated like all the other build files. Signed-off-by: Roman Mohr <[email protected]>
- Loading branch information
Showing
4 changed files
with
6 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
# gazelle:ignore | ||
load("@io_bazel_rules_go//go:def.bzl", "go_tool_library") | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_tool_library( | ||
name = "ineffassign", | ||
go_library( | ||
name = "go_default_library", | ||
srcs = ["analyzer.go"], | ||
importpath = "kubevirt.io/kubevirt/analyzer", | ||
importpath = "kubevirt.io/kubevirt/tools/analyzers", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//vendor/github.com/gordonklaus/ineffassign/pkg/ineffassign:go_tool_library", | ||
], | ||
deps = ["//vendor/github.com/gordonklaus/ineffassign/pkg/ineffassign:go_default_library"], | ||
) |
1 change: 0 additions & 1 deletion
1
vendor/github.com/gordonklaus/ineffassign/pkg/ineffassign/BUILD.bazel
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.