Skip to content
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

Support golang tip image #3681

Open
witchcraze opened this issue Feb 22, 2025 · 1 comment
Open

Support golang tip image #3681

witchcraze opened this issue Feb 22, 2025 · 1 comment
Labels

Comments

@witchcraze
Copy link
Contributor

What would you like to be added:

Support golang tip image in binary detection

Additional context:

$ syft -q golang:tip | grep ^go
$ docker run -it --rm golang which go
/usr/local/go/bin/go
$ docker run -it --rm golang:tip go version
go version devel go1.25-d524e1e Sun Feb 16 07:23:13 2025 -0800 linux/amd64
$ docker run -it --rm golang:tip strings /usr/local/go/bin/go | grep -e '1\.25'
devel go1.25-d524e1e Sun Feb 16 07:23:13 2025 -0800
3devel go1.25-d524e1e Sun Feb 16 07:23:13 2025 -0800
@witchcraze witchcraze added the enhancement New feature or request label Feb 22, 2025
@willmurphyscode
Copy link
Contributor

❯ docker run -it --rm golang:tip go version -m /usr/local/go/bin/go
/usr/local/go/bin/go: devel go1.25-fba83cd Sun Feb 23 12:04:15 2025 -0800
        path    cmd/go
        build   -buildmode=exe
        build   -compiler=gc
        build   CGO_ENABLED=0
        build   GOARCH=arm64
        build   GOOS=linux
        build   GOARM64=v8.0

Dev question: is that version the version of the toolchain that built the Go CLI, or the version of the Go CLI? If we find the string devel go1.25-fba83cd via regex or examining buildInfo, is that the right string? Or are the two versions the same, and we're comfortable relying on the coincidence that the Go version used to build tip is the Go version tip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants