Go: create whole extractor pack with bazel

This commit is contained in:
Paolo Tranquilli
2024-04-26 12:01:23 +02:00
parent 3ad9c026a5
commit 925a2cca7e
5 changed files with 146 additions and 0 deletions

View 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__"],
)