Skip to content

build some project use goreleaser in my meachine,it's size so big, reach 20MB +, but download binary from from github release,it's so tiny, just 7MB #3784

Answered by caarlos0
Fly-Playgroud asked this question in Q&A
Discussion options

You must be logged in to vote

probably different build flags, run goreleaser build --clean --debug --single-target --snapshot and you'll see..

but probably your config has the strip debug symbols et al (go build -ldflags="-s -w")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by caarlos0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants