-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update goreleaser to use boring #1702
Changes from all commits
c42adb6
bed423e
6936cc0
afa6599
8918591
0c4b77b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,18 @@ builds: | |
binary: kanctl | ||
main: cmd/kanctl/main.go | ||
ldflags: &ldflags | ||
- -s -w | ||
- -extldflags "-static" | ||
-X github.com/kanisterio/kanister/pkg/version.VERSION={{.Version}} | ||
-X github.com/kanisterio/kanister/pkg/version.GIT_COMMIT={{.Commit}} | ||
-X github.com/kanisterio/kanister/pkg/version.BUILD_DATE={{.Date}} | ||
env: &env | ||
- GO111MODULE=on | ||
- CGO_ENABLED=0 | ||
- CGO_ENABLED=1 | ||
- GOEXPERIMENT=boringcrypto | ||
- CC=gcc | ||
- CXX=g++ | ||
- GO_EXTLINK_ENABLED=0 | ||
goos: | ||
- darwin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not affect production, not sure if it affects local development for folks. Just noting. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea I assumed this was tested out early on for local development.. Does not affect production. |
||
- linux | ||
goarch: &goarch | ||
- amd64 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is
-w
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From stack overflow -
The -w turns off DWARF debugging information: you will not be able to use gdb on the binary to look at specific functions or set breakpoints or get stack traces, because all the metadata gdb needs will not be included.