extract build information from go binary
https://github.com/veggiemonk/buildinfo.git
Extract build information from Go binary
go install github.com/veggiemonk/buildinfo@latest
Mostly used to update binaries that were install with go install.
buildinfo $(which pkgsite) | jq -r '.Path' | xargs -I {} go install "{}@latest"
buildinfo $(which hugo) | jq -r '.Main.Path'buildinfo $(which gopls) | jq -r '.GoVersion'buildinfo $(which pkgsite) | jq -r '.Main.Version'buildinfo $(which hugo) | jq -r -c '.Deps.[]' | grep yamlgovulncheck -mode=binary $(which hugo)