cri-o: Fix build tags usage

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2020-01-22 16:33:15 +01:00 committed by Emery Hemingway
parent dc1d9a578d
commit b5035c0892

View File

@ -16,8 +16,7 @@
}: }:
let let
makeFlags = "BUILDTAGS=\"apparmor seccomp selinux buildTags = "apparmor seccomp selinux containers_image_ostree_stub";
containers_image_ostree_stub\"";
in buildGoPackage rec { in buildGoPackage rec {
project = "cri-o"; project = "cri-o";
version = "1.16.1"; version = "1.16.1";
@ -47,7 +46,7 @@ in buildGoPackage rec {
# Build the crio binaries # Build the crio binaries
function build() { function build() {
go build \ go build \
-tags ${makeFlags} \ -tags "${buildTags}" \
-o bin/"$1" \ -o bin/"$1" \
-buildmode=pie \ -buildmode=pie \
-ldflags '-s -w ${ldflags}' \ -ldflags '-s -w ${ldflags}' \