Convert go_binary linkstamp to x_defs

This commit is contained in:
Jeff Grafton
2017-06-05 16:37:19 -07:00
parent 14e1889372
commit 64bd79fad7
14 changed files with 73 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ load(
"go_binary",
"go_library",
)
load("//pkg/version:def.bzl", "version_x_defs")
go_binary(
name = "kubectl",
@@ -15,11 +16,11 @@ go_binary(
"-static",
],
library = ":go_default_library",
linkstamp = "k8s.io/kubernetes/pkg/version",
tags = ["automanaged"],
visibility = [
"//build/visible_to:COMMON_release",
],
x_defs = version_x_defs(),
)
go_library(