Skip to content

Commit

Permalink
disable GODEBUG=gocachehash=1
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxPeal authored Jun 20, 2022
1 parent 059c7e0 commit 4093858
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ RUN --mount=type=cache,id=gomod,sharing=locked,mode=0775,target=/go/pkg/mod \
du -hd0 $(go env GOCACHE) && \
go env GOMODCACHE && \
du -hd0 $(go env GOMODCACHE) && \
GODEBUG=gocachehash=1 go build -v -ldflags="-s -w" && \
go build -v -ldflags="-s -w" && \
du -hd0 $(go env GOCACHE) && \
du -hd0 $(go env GOMODCACHE)
# go build -ldflags="-s -w"
## # GODEBUG=gocachehash=1 go build -v -ldflags="-s -w" && \
## # go build -ldflags="-s -w"

FROM alpine:3.16
WORKDIR /app
Expand Down

0 comments on commit 4093858

Please sign in to comment.