1
1
load ("@bazel_skylib//rules:native_binary.bzl" , "native_binary" )
2
- load ("@gazelle//:def.bzl" , "gazelle" )
3
2
load ("@rules_pkg//pkg:install.bzl" , "pkg_install" )
4
3
load ("@rules_pkg//pkg:mappings.bzl" , "pkg_attributes" , "pkg_filegroup" , "pkg_files" )
5
4
load ("@rules_pkg//pkg:zip.bzl" , "pkg_zip" )
6
5
load ("//:defs.bzl" , "codeql_platform" )
7
6
8
- gazelle (
7
+ native_binary (
9
8
name = "gazelle" ,
10
- extra_args = ["go/extractor" ],
9
+ src = "@gazelle//cmd/gazelle" ,
10
+ out = "gazelle.exe" ,
11
+ args = ["go/extractor" ],
11
12
)
12
13
13
14
_gen_binaries = [
@@ -24,9 +25,9 @@ py_binary(
24
25
deps = ["@rules_python//python/runfiles" ],
25
26
)
26
27
27
- # this is an internal copy of the dbscheme to be used by extractor-pack
28
- # this allows the extractor-pack target to be independent and up-to-date with respect to
29
- # having run //go:gen to update the checked in files
28
+ # this is an instance of the dbscheme kept in the bazel build tree
29
+ # this allows everything that bazel builds to be up-to-date,
30
+ # independently from whether //go:gen was already run to update the checked in files
30
31
genrule (
31
32
name = "dbscheme" ,
32
33
outs = ["go.dbscheme" ],
@@ -108,12 +109,3 @@ py_binary(
108
109
main = "create_extractor_pack.py" ,
109
110
deps = ["@rules_python//python/runfiles" ],
110
111
)
111
-
112
- native_binary (
113
- name = "gen-dbscheme" ,
114
- src = "//go/extractor/cli/go-gen-dbscheme" ,
115
- out = "go-gen-dbscheme" ,
116
- args = [
117
- "$$BUILD_WORKSPACE_DIRECTORY/go/ql/lib/go.dbscheme" ,
118
- ],
119
- )
0 commit comments