command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
buildinfo
Extract build information from Go binary
Install
go install github.com/veggiemonk/buildinfo@latest
Usage
Mostly used to update binaries that were install with go install
.
buildinfo $(which pkgsite) | jq -r '.Path' | xargs -I {} go install "{}@latest"
Tips
- Find the origin of the binary:
buildinfo $(which hugo) | jq -r '.Main.Path'
- Find the version of Go the binary was compiled with:
buildinfo $(which gopls) | jq -r '.GoVersion'
- Find the version of the binary:
buildinfo $(which pkgsite) | jq -r '.Main.Version'
- Filter dependencies:
buildinfo $(which hugo) | jq -r -c '.Deps.[]' | grep yaml
Noteworthy:
- Check for vulnerable binaries:
govulncheck -mode=binary $(which hugo)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.