Skip to content

Commit

Permalink
go 1.16 with m1 support, cut down binary size by ~40% with ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
danenania committed Apr 5, 2021
1 parent f4e1df6 commit 1909663
Show file tree
Hide file tree
Showing 5 changed files with 320 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
builds:
- binary: envkey-source
ldflags: '-extldflags "-static"'
ldflags:
- '-s -w'
- '-extldflags "-static"'
env:
- CGO_ENABLED=0
- GOROOT_FINAL=/usr/go
Expand Down
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/envkey/envkey-source

go 1.16

require (
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
github.com/envkey/envkey-fetch v1.2.8
github.com/joho/godotenv v1.3.0
github.com/spf13/cobra v1.1.3
github.com/stretchr/testify v1.7.0
)
Loading

0 comments on commit 1909663

Please sign in to comment.