Skip to content

Commit

Permalink
Merge pull request #5577 from qiuming-best/release-1.9
Browse files Browse the repository at this point in the history
Fix restic cross platform compile problem
  • Loading branch information
Lyndon-Li committed Nov 9, 2022
2 parents 2fa4a01 + 20af506 commit 9a617fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ ENV GOOS=${TARGETOS} \
GOARM=${TARGETVARIANT}

RUN mkdir -p /output/usr/bin && \
bash ./hack/build-restic.sh && \
export GOARM=$( echo "${GOARM}" | cut -c2-) && \
bash ./hack/build-restic.sh && \
go build -o /output/${BIN} \
-ldflags "${LDFLAGS}" ${PKG}/cmd/${BIN}

Expand Down
2 changes: 1 addition & 1 deletion hack/build-restic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ fi
mkdir ${build_path}/restic
git clone -b v${RESTIC_VERSION} https://github.com/restic/restic.git ${build_path}/restic
pushd ${build_path}/restic
go run build.go -o ${restic_bin}
go run build.go --goos "${GOOS}" --goarch "${GOARCH}" --goarm "${GOARM}" -o ${restic_bin}
chmod +x ${restic_bin}
popd

0 comments on commit 9a617fe

Please sign in to comment.