Skip to content

Commit fceed9f

Browse files
committedFeb 4, 2024
fix 32-bit ARM v6 (GOARM=6 was not being propagated)
used incorrect syntax in shell 🤦
1 parent 29ea131 commit fceed9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎build-go-project.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ gobuildmaybe() {
128128
# - using v6 to be compatible with Raspberry Pi Zero W (& by extension, the original Pi)
129129

130130
# compile statically so this works on Alpine Linux that doesn't have glibc
131-
(cd "$dir_in_which_to_compile" && GOARM=6 && GOOS="$os" GOARCH="$architecture" CGO_ENABLED=0 go build \
131+
(cd "$dir_in_which_to_compile" && GOARM=6 GOOS="$os" GOARCH="$architecture" CGO_ENABLED=0 go build \
132132
-ldflags "-extldflags \"-static\" -X github.com/function61/gokit/app/dynversion.Version=$FRIENDLY_REV_ID" \
133133
-o "$projectroot/rel/${BINARY_NAME}${binSuffix}")
134134
}

0 commit comments

Comments
 (0)