Skip to content

Commit

Permalink
Always build with -tags=containers_image_openpgp
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrmac committed Mar 6, 2017
1 parent 5d42163 commit e45af45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ os::build::internal::build_binaries() {
version_ldflags=$(os::build::ldflags)

# Use eval to preserve embedded quoted strings.
local common_gotags
common_gotags='containers_image_openpgp'
local goflags
eval "goflags=(${OS_GOFLAGS:-})"

Expand Down Expand Up @@ -222,7 +224,7 @@ os::build::internal::build_binaries() {
if [[ ${#nonstatics[@]} -gt 0 ]]; then
GOOS=${platform%/*} GOARCH=${platform##*/} go install \
-pkgdir "${OS_OUTPUT_PKGDIR}/${platform}" \
-tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" \
-tags "${common_gotags} ${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" \
-ldflags "${version_ldflags}" \
"${goflags[@]:+${goflags[@]}}" \
"${nonstatics[@]}"
Expand All @@ -239,7 +241,7 @@ os::build::internal::build_binaries() {
# disabling cgo allows use of delve
CGO_ENABLED=0 GOOS=${platform%/*} GOARCH=${platform##*/} go test \
-pkgdir "${OS_OUTPUT_PKGDIR}/${platform}" \
-tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_test_envvar:-}" \
-tags "${common_gotags} ${OS_GOFLAGS_TAGS-} ${!platform_gotags_test_envvar:-}" \
-ldflags "${version_ldflags}" \
-i -c -o "${outfile}" \
"${goflags[@]:+${goflags[@]}}" \
Expand Down

0 comments on commit e45af45

Please sign in to comment.