Skip to content

Commit

Permalink
Remove comment and env var existance
Browse files Browse the repository at this point in the history
The comment is irrelevant and the check is redundant
  • Loading branch information
razo7 authored and openshift-cherrypick-robot committed Nov 6, 2024
1 parent 702f40d commit 264844c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ BUILD_DATE=$(date --utc -Iseconds)
mkdir -p bin

LDFLAGS_VALUE="-X github.com/medik8s/node-maintenance-operator/version.Version=${VERSION} "
# additional values must be quoted when used with GOFLAGS!
LDFLAGS_VALUE+="-X github.com/medik8s/node-maintenance-operator/version.GitCommit=${COMMIT} "
LDFLAGS_VALUE+="-X github.com/medik8s/node-maintenance-operator/version.BuildDate=${BUILD_DATE} "
# allow override for debugging flags
Expand All @@ -27,8 +26,6 @@ export CGO_ENABLED=${CGO_ENABLED:-0}
echo "cgo: ${CGO_ENABLED}"

# export in case it was set
if [ ! -z "${GOEXPERIMENT}" ]; then
export GOEXPERIMENT= $GOEXPERIMENT
fi
export GOEXPERIMENT= $GOEXPERIMENT

GOOS=linux GOARCH=amd64 go build -o bin/manager main.go

0 comments on commit 264844c

Please sign in to comment.