File tree 3 files changed +17
-6
lines changed
3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 17
17
script_dir=" $( cd " $( dirname " $0 " ) " && pwd -P) "
18
18
source " ${script_dir} " /common.sh
19
19
setGoInProw $GOLANG_VER
20
+ type go
21
+ go version
22
+ echo $GOOS $GOARCH
23
+ if [ " ${GOARCH} " != " amd64" ]; then
24
+ # disable dynamic linking for non amd64 architectures. Don't have a proper cross compiler to make this
25
+ # work. In particular can't find a glibc that can be installed.
26
+ CGO_ENABLED=0 go build -a -o _out/hostpath-csi-driver cmd/plugin/plugin.go
27
+ else
28
+ CGO_ENABLED=1 go build -a -tags strictfipsruntime -o _out/hostpath-csi-driver cmd/plugin/plugin.go
29
+ fi
20
30
21
- CGO_ENABLED=1 go build -a -tags strictfipsruntime -o _out/hostpath-csi-driver cmd/plugin/plugin.go
Original file line number Diff line number Diff line change 16
16
script_dir=" $( cd " $( dirname " $0 " ) " && pwd -P) "
17
17
source " ${script_dir} " /common.sh
18
18
setGoInProw $GOLANG_VER
19
-
20
- CGO_ENABLED=1 go build -a -tags strictfipsruntime -o _out/hostpath-provisioner cmd/provisioner/hostpath-provisioner.go
19
+ if [ " ${GOARCH} " != " amd64" ]; then
20
+ # disable dynamic linking for non amd64 architectures. Don't have a proper cross compiler to make this
21
+ # work. In particular can't find a glibc that can be installed.
22
+ CGO_ENABLED=0 go build -a -o _out/hostpath-provisioner cmd/provisioner/hostpath-provisioner.go
23
+ else
24
+ CGO_ENABLED=1 go build -a -tags strictfipsruntime -o _out/hostpath-provisioner cmd/provisioner/hostpath-provisioner.go
25
+ fi
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ function setGoInProw() {
18
18
if [[ -v PROW_JOB_ID ]] ; then
19
19
export GIMME_HOSTARCH=amd64
20
20
export GIMME_ARCH=${GOARCH}
21
- if [ " ${GOARCH} " == " arm64" ]; then
22
- dnf install -y gcc-aarch64-linux-gnu
23
- fi
24
21
eval $( gimme ${1} )
25
22
echo " ~/.gimme/versions/go${1} .linux.${GOARCH} "
26
23
cp -R ~ /.gimme/versions/go${1} .linux.${GOARCH} /usr/local/go
You can’t perform that action at this time.
0 commit comments