Skip to content

Commit

Permalink
fix: musl crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Jul 11, 2024
1 parent 6d5cb37 commit 0a8f061
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ RUN apk add --no-cache --virtual .build-deps \
WORKDIR /
RUN git clone https://go.googlesource.com/go goroot
WORKDIR /goroot
COPY 0001-fix-musl-crash.patch .
# Revert https://github.com/golang/go/commit/3560cf0afb3c29300a6c88ccd98256949ca7a6f6 to prevent the crash with musl
RUN git config --global user.email "build@example.com" && \
git config --global user.name "Build" && \
git checkout "$(go env GOVERSION)" && \
git revert 3560cf0afb3c29300a6c88ccd98256949ca7a6f6
git apply 0001-fix-musl-crash.patch
WORKDIR /goroot/src
ENV GOHOSTARCH="$TARGETARCH"
RUN ./make.bash
Expand Down

0 comments on commit 0a8f061

Please sign in to comment.