-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathBUILD.bazel
51 lines (46 loc) · 1.26 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
load("@rules_go//go:def.bzl", "go_library", "go_test")
# A build file for rpmpack.
# For running basic build/run/test you can also use the regular go tools,
# this is currently added to assist in external testing.
load("@gazelle//:def.bzl", "gazelle")
gazelle(name = "gazelle")
go_library(
name = "rpmpack",
srcs = [
"dir.go",
"file_types.go",
"header.go",
"rpm.go",
"sense.go",
"tags.go",
"tar.go",
],
importpath = "github.com/google/rpmpack",
visibility = ["//visibility:public"],
deps = [
"@com_github_cavaliergopher_cpio//:cpio",
"@com_github_klauspost_compress//zstd",
"@com_github_klauspost_pgzip//:pgzip",
"@com_github_ulikunitz_xz//:xz",
"@com_github_ulikunitz_xz//lzma",
],
)
go_test(
name = "rpmpack_test",
srcs = [
"dir_test.go",
"file_types_test.go",
"header_test.go",
"rpm_test.go",
"sense_test.go",
"tar_test.go",
],
embed = [":rpmpack"],
deps = [
"@com_github_google_go_cmp//cmp",
"@com_github_klauspost_compress//zstd",
"@com_github_klauspost_pgzip//:pgzip",
"@com_github_ulikunitz_xz//:xz",
"@com_github_ulikunitz_xz//lzma",
],
)