From: James Munnelly Date: Mon, 24 Apr 2017 14:22:23 +0000 (+0100) Subject: releaser: Fix statically linked binaries X-Git-Tag: v0.20.5~10 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=275bcf566c7cb72367d4423cf4810319311ff680;p=brevno-suite%2Fhugo 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 --- diff --git a/goreleaser.yml b/goreleaser.yml index 4b7fef63..582ad7d1 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -1,7 +1,7 @@ build: main: main.go binary: hugo - ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} + ldflags_template: -s -w -X hugolib.BuildDate={{.Date}} -linkmode external -extldflags "-static" goos: - darwin - linux