Reformat openapi/def.bzl and pkg/version/def.bzl using latest buildifier rules

This commit is contained in:
Jeff Grafton
2018-05-21 14:48:06 -07:00
parent 23ceebac22
commit d3a22cbd2f
2 changed files with 52 additions and 50 deletions

View File

@@ -22,8 +22,8 @@ def openapi_library(name, tags, srcs, go_prefix, vendor_prefix="", openapi_targe
] + ["//%s:go_default_library" % target for target in openapi_targets] + ["//vendor/%s:go_default_library" % target for target in vendor_targets]
go_library(
name = name,
tags=tags,
srcs = srcs + [":zz_generated.openapi"],
tags = tags,
deps = deps,
)
go_genrule(

View File

@@ -20,6 +20,7 @@ def version_x_defs():
# In hack/lib/version.sh, this has a vendor/ prefix. That isn't needed here?
"k8s.io/client-go/pkg/version",
]
# This should match the list of vars in kube::version::ldflags
# It should also match the list of vars set in hack/print-workspace-status.sh.
stamp_vars = [
@@ -30,6 +31,7 @@ def version_x_defs():
"gitTreeState",
"gitVersion",
]
# Generate the cross-product.
x_defs = {}
for pkg in stamp_pkgs: