Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfa189e

Browse files
committed
Go: use a dbscheme generated during the build in extractor-pack
1 parent 19b2e56 commit bfa189e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

go/BUILD.bazel

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ py_binary(
2121
deps = ["@rules_python//python/runfiles"],
2222
)
2323

24+
# this is an internal copy of the dbscheme to be used by extractor-pack
25+
# this allows the extractor-pack target to be independent and up-to-date with respect to
26+
# having run //go:gen to update the checked in files
27+
genrule(
28+
name = "dbscheme",
29+
outs = ["go.dbscheme"],
30+
cmd = "$(execpath //go/extractor/cli/go-gen-dbscheme) $@",
31+
tools = ["//go/extractor/cli/go-gen-dbscheme"],
32+
)
33+
2434
pkg_files(
2535
name = "resources",
2636
srcs = [
2737
"LICENSE",
2838
"codeql-extractor.yml",
29-
"ql/lib/go.dbscheme",
3039
"ql/lib/go.dbscheme.stats",
40+
":dbscheme",
3141
],
3242
)
3343

0 commit comments

Comments
 (0)