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

stdlib version contains distribution #3553

Open
TimBrown1611 opened this issue Dec 31, 2024 · 3 comments
Open

stdlib version contains distribution #3553

TimBrown1611 opened this issue Dec 31, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@TimBrown1611
Copy link

What happened:
I scanned a redhat image which contains go, and received the below version of stdlib:

      "id": "d17a2467c2d6c774",
      "name": "stdlib",
      "version": "go1.21.9 (Red Hat 1.21.9-2.el9_4)",
      "type": "go-module",
      "foundBy": "",
      "locations": [
        {
          "path": "/usr/bin/skopeo",
          "layerID": "sha256:c0e434e0d415074a5a01a06ff56044b33a8e448eeafcee4c1a3a068d328dd0cf",
          "accessPath": "/usr/bin/skopeo",
          "annotations": {
            "evidence": "primary"
          }
        }

distro information:

    "prettyName": "Red Hat Enterprise Linux 9.4 (Plow)",
    "name": "Red Hat Enterprise Linux",
    "id": "rhel",
    "idLike": [
      "fedora"
    ],
    "version": "9.4 (Plow)",
    "versionID": "9.4",
    "homeURL": "https://www.redhat.com/",

What you expected to happen:
I think the version should be - 1.21.9

Steps to reproduce the issue:
I can't share the image I've scanned, but let me know if you need me to share more details.

Anything else we need to know?:

Environment:

  • Output of syft version: 1.18.1
  • OS (e.g: cat /etc/os-release or similar): macOS
@TimBrown1611 TimBrown1611 added the bug Something isn't working label Dec 31, 2024
@jherrerasbp
Copy link

I've seen the same case with the image redis:7.4.1-alpine3.20 and digest c1e88455c85225310bbea54816e9c3f4b5295815e6dbf80c34d40afc6df28275 from docker hub

@spiffcs spiffcs moved this to Ready in OSS Jan 6, 2025
@spiffcs
Copy link
Contributor

spiffcs commented Jan 6, 2025

Thanks @TimBrown1611 for the report and @jherrerasbp for the reproduction steps.

I've confirmed/reproduced this as well. When someone on the team has time we'll try and tackle this bug.

@g-suraj
Copy link

g-suraj commented Jan 14, 2025

Is it expected for the version to be prefixed with go? It also seems reasonable to remove the prefix just like when we instantiate the packageURL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready
Development

No branches or pull requests

4 participants