-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
strip_binaries
configuration option (#280)
Whether or not generated Go binaries are stripped is determined by the build mode: `opt` strips them, `dbg` doesn't. There are cases in which we might want to avoid stripping binaries even when building them in `opt` mode - a notable example is to preserve the `.symtab` table, which [govulncheck](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck) uses to perform a deeper analysis of whether vulnerable code is called by the binary. Add an option to the plugin configuration, `strip_binaries`, that causes binaries to be stripped or not stripped regardless of the build mode. If a value is not set for `strip_binaries`, `go_binary` behaves as it does currently (i.e. stripping behaviour depends on the build mode).
- Loading branch information
1 parent
7e4792f
commit ba6e774
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters