Skip to content

Commit

Permalink
fix: force exe buildmode for windows CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 15, 2020
1 parent 487296d commit e017bb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Expand Up @@ -63,6 +63,8 @@ builds:
flags:
- -tags
- sqlite
# Remove once https://github.com/golang/go/issues/40795 is closed
- -buildmode=exe
ldflags:
- -s -w -X github.com/ory/kratos/internal/clihelpers.BuildVersion={{.Tag}} -X github.com/ory/kratos/internal/clihelpers.BuildGitHash={{.FullCommit}} -X github.com/ory/kratos/internal/clihelpers.BuildTime={{.Date}}
- "-extldflags '-static'"
Expand Down

0 comments on commit e017bb5

Please sign in to comment.