File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ GOPATH_WD_OVERRIDES := -w /src -e GOPATH=/go
71
71
IMAGE_BUILD_FLAGS := -e CGO_ENABLED=$(CGO_ENABLED ) -e GOOS=linux -e GOARCH=$(GOARCH )
72
72
IMAGE_BUILD_ARGS = --build-arg LABEL_VERSION=$(TAG ) --build-arg LABEL_RELEASE=$(TAG ) --build-arg QUAY_TAG_EXPIRATION=$(QUAY_TAG_EXPIRATION )
73
73
BUILD_FLAGS := CGO_ENABLED=$(CGO_ENABLED ) GOOS=linux GOARCH=$(GOARCH )
74
- BUILD_CMD := go build -trimpath -ldflags="-X github.com/stackrox/scanner/pkg/version.Version=$(TAG ) " -o image/scanner/bin/scanner ./cmd/clair
74
+ GOTAGS ?=
75
+ BUILD_CMD := go build -trimpath -ldflags="-X github.com/stackrox/scanner/pkg/version.Version=$(TAG ) " $(if $(GOTAGS ) ,-tags=$(GOTAGS ) ) -o image/scanner/bin/scanner ./cmd/clair
75
76
NODESCAN_BUILD_CMD := go build -trimpath -o tools/bin/local-nodescanner ./tools/local-nodescanner
76
77
77
78
# ####################################################################
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ ARG SCANNER_TAG
10
10
RUN if [[ "$SCANNER_TAG" == "" ]]; then >&2 echo "error: required SCANNER_TAG arg is unset" ; exit 6; fi
11
11
ENV RELEASE_TAG="${SCANNER_TAG}"
12
12
13
- ENV GOFLAGS=""
13
+ ENV GOEXPERIMENT=strictfipsruntime
14
+ ENV GOFLAGS="strictfipsruntime"
14
15
ENV CI=1
15
16
16
17
COPY . /src
You can’t perform that action at this time.
0 commit comments