-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
52 lines (43 loc) · 1.1 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
52
licenses(["notice"]) # Apache 2.0
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/google/safearchive
# gazelle:go_naming_convention import_alias
gazelle(name = "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
buildifier(
name = "buildifier",
)
package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "safeopen",
srcs = [
"safeopen.go",
"safeopen_nix_common.go",
"safeopen_linux.go",
"safeopen_nix.go",
"safeopen_win.go",
],
importpath = "github.com/google/safeopen",
visibility = ["//visibility:public"],
deps = [
"@go_sys//unix",
"@go_sys//windows",
],
)
alias(
name = "go_default_library",
actual = ":safeopen",
visibility = ["//visibility:public"],
)
go_test(
name = "safeopen_test",
size = "small",
srcs = [
"safeopen_test.go",
"safeopen_linux_test.go",
"safeopen_nix_test.go",
"safeopen_win_test.go",
],
embed = [":safeopen"],
)