summaryrefslogtreecommitdiffhomepage
path: root/runsc/BUILD
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-04-01 16:17:40 -0700
committerShentubot <shentubot@google.com>2019-04-01 16:18:43 -0700
commit7543e9ec2043af7d071373aeec04b92a98051087 (patch)
treef43044f892c853d5cf97fe5d12f6d6702a2a02f1 /runsc/BUILD
parent7cff746ef2bbe5351e5985bebc88efc9e0881c78 (diff)
Add release hook and version flag
PiperOrigin-RevId: 241421671 Change-Id: Ic0cebfe3efd458dc42c49f7f812c13318705199a
Diffstat (limited to 'runsc/BUILD')
-rw-r--r--runsc/BUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/runsc/BUILD b/runsc/BUILD
index e390b7bae..eb7503502 100644
--- a/runsc/BUILD
+++ b/runsc/BUILD
@@ -6,12 +6,13 @@ go_binary(
name = "runsc",
srcs = [
"main.go",
+ "version.go",
],
pure = "on",
visibility = [
"//visibility:public",
],
- x_defs = {"main.gitRevision": "{GIT_REVISION}"},
+ x_defs = {"main.version": "{VERSION}"},
deps = [
"//pkg/log",
"//runsc/boot",
@@ -36,12 +37,13 @@ go_binary(
name = "runsc-race",
srcs = [
"main.go",
+ "version.go",
],
static = "on",
visibility = [
"//visibility:public",
],
- x_defs = {"main.gitRevision": "{GIT_REVISION}"},
+ x_defs = {"main.version": "{VERSION}"},
deps = [
"//pkg/log",
"//runsc/boot",