mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Go: create whole extractor pack with bazel
This commit is contained in:
28
go/codeql-tools/BUILD.bazel
Normal file
28
go/codeql-tools/BUILD.bazel
Normal file
@@ -0,0 +1,28 @@
|
||||
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_files")
|
||||
|
||||
pkg_files(
|
||||
name = "executables",
|
||||
srcs = glob(["*.sh"]),
|
||||
attributes = pkg_attributes(mode = "0755"),
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "non-executables",
|
||||
srcs = glob(
|
||||
["*"],
|
||||
exclude = [
|
||||
"*.sh",
|
||||
"BUILD.bazel",
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
pkg_filegroup(
|
||||
name = "codeql-tools",
|
||||
srcs = [
|
||||
":executables",
|
||||
":non-executables",
|
||||
],
|
||||
prefix = "tools",
|
||||
visibility = ["//go:__pkg__"],
|
||||
)
|
||||
Reference in New Issue
Block a user