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
-
build this 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.why cause this deference |
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
Feb 16, 2023
Replies: 1 comment
-
probably different build flags, run but probably your config has the strip debug symbols et al ( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
caarlos0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"
)