11load ("@bazel_skylib//rules:native_binary.bzl" , "native_binary" )
2- load ("@gazelle//:def.bzl" , "gazelle" )
32load ("@rules_pkg//pkg:install.bzl" , "pkg_install" )
43load ("@rules_pkg//pkg:mappings.bzl" , "pkg_attributes" , "pkg_filegroup" , "pkg_files" )
54load ("@rules_pkg//pkg:zip.bzl" , "pkg_zip" )
65load ("//:defs.bzl" , "codeql_platform" )
76
8- gazelle (
7+ native_binary (
98 name = "gazelle" ,
10- extra_args = ["go/extractor" ],
9+ src = "@gazelle//cmd/gazelle" ,
10+ out = "gazelle.exe" ,
11+ args = ["go/extractor" ],
1112)
1213
1314_gen_binaries = [
@@ -24,9 +25,9 @@ py_binary(
2425 deps = ["@rules_python//python/runfiles" ],
2526)
2627
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
3031genrule (
3132 name = "dbscheme" ,
3233 outs = ["go.dbscheme" ],
@@ -108,12 +109,3 @@ py_binary(
108109 main = "create_extractor_pack.py" ,
109110 deps = ["@rules_python//python/runfiles" ],
110111)
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