summaryrefslogtreecommitdiffhomepage
path: root/tools/constraintutil/BUILD
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2021-07-27 18:11:03 -0700
committergVisor bot <gvisor-bot@google.com>2021-07-27 18:14:05 -0700
commit964fb3ca768756fbc58d1d9312c53886964ae608 (patch)
tree6d9a2dd0c0b16dd68a1b2c11666c3f9564ea72fd /tools/constraintutil/BUILD
parent9a96e00f0fb0215d604c72485a85c29f75f48ebc (diff)
Use go:build directives in generated files.
Build constraints are now inferred from go:build directives rather than +build directives. +build directives are still emitted in generated files as required in Go 1.16 and earlier. Note that go/build/constraint was added in Go 1.16, so gVisor now requires Go 1.16. PiperOrigin-RevId: 387240779
Diffstat (limited to 'tools/constraintutil/BUILD')
-rw-r--r--tools/constraintutil/BUILD18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/constraintutil/BUILD b/tools/constraintutil/BUILD
new file mode 100644
index 000000000..004b708c4
--- /dev/null
+++ b/tools/constraintutil/BUILD
@@ -0,0 +1,18 @@
+load("//tools:defs.bzl", "go_library", "go_test")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "constraintutil",
+ srcs = ["constraintutil.go"],
+ marshal = False,
+ stateify = False,
+ visibility = ["//tools:__subpackages__"],
+)
+
+go_test(
+ name = "constraintutil_test",
+ size = "small",
+ srcs = ["constraintutil_test.go"],
+ library = ":constraintutil",
+)