Skip to content

Commit

Permalink
chore: omit debug information release builds (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan authored Sep 8, 2024
1 parent 4e87e6a commit 189af88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds:
flags:
- '-trimpath'
ldflags:
- '-X github.com/hacdias/webdav/v5/cmd.version={{.Version}}'
- '-s -w -X github.com/hacdias/webdav/v5/cmd.version={{.Version}}'
goos:
- darwin
- linux
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY ./go.sum ./
RUN go mod download

COPY . /webdav/
RUN go build -o main -ldflags="-X 'github.com/hacdias/webdav/v5/cmd.version=$VERSION'" .
RUN go build -o main -trimpath -ldflags="-s -w -X 'github.com/hacdias/webdav/v5/cmd.version=$VERSION'" .

FROM scratch

Expand Down

0 comments on commit 189af88

Please sign in to comment.