Skip to content

Commit

Permalink
cmd/shfmt: undo the Docker side of the version var rename
Browse files Browse the repository at this point in the history
For #860, which is left open as a warning to users.
  • Loading branch information
mvdan committed May 23, 2022
1 parent 927ed8e commit 0aaaab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/shfmt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.18.2-alpine AS build
WORKDIR /src
RUN apk add --no-cache git
COPY . .
RUN CGO_ENABLED=0 go build -ldflags "-w -s -extldflags '-static' -X main.knownVersion=$(git describe --always --dirty --tags)" ./cmd/shfmt
RUN CGO_ENABLED=0 go build -ldflags "-w -s -extldflags '-static' -X main.version=$(git describe --always --dirty --tags)" ./cmd/shfmt

FROM alpine:3.15.4 AS alpine
COPY --from=build /src/shfmt /bin/shfmt
Expand Down

0 comments on commit 0aaaab3

Please sign in to comment.