Skip to content

Commit 275bcf5

Browse files
munnerzbep
authored andcommitted
releaser: Fix statically linked binaries
In Hugo 0.20.3, the released binaries for Linux was no longer statically linked. This commit fixes that. Fixes #3382
1 parent cb3c6b6 commit 275bcf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎goreleaser.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build:
22
main: main.go
33
binary: hugo
4-
ldflags_template: -s -w -X hugolib.BuildDate={{.Date}}
4+
ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} -linkmode external -extldflags "-static"
55
goos:
66
- darwin
77
- linux

0 commit comments

Comments
 (0)