-
Notifications
You must be signed in to change notification settings - Fork 574
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
Spurious warnings - unknown relationship type: evident-by form-lib=syft #1812
Comments
This is because there is a new relationship type in the latest released version of syft that the latest released version of grype doesn't understand yet. It should go away once the next version of grype is released since it is bumped to used syft v0.78.0. Basically the warning is meant to show that there is information being lost from the sbom since grype doesn't understand it yet. |
Thanks, is there an easy way to say "use the latest version of grype and the latest version of syft that it's compatible with" when we run the syft and grype installs? We have just been installing the latest of both and working on the assumption that the releases are co-ordinated and latest grype plays nice with latest syft. |
Hi @durera, today we don't have an easy way to download the exact Syft version that matches the Grype you're using. You can identify what version of Syft a particular Grype release is using by running @anchore/tools: let's discuss adding some automation to our release process to bump the main version of Syft in Grype before we cut Syft releases to try to keep them more in sync for cases like this. |
We can put a more general warning initially: When syft starts parsing an SBOM, it can check the JSON schema version that is written in the SBOM, and log a warning if that version is later than the version of the parser that is running. I plan to make this as a separate PR after the one that deduplicates the particular log lines that are spammed here. |
What happened:
What you expected to happen:
When we lock the versions to syft v0.76.0 and grype v0.60.0 (ie 3 weeks ago releases), it's back to normal expected behaviour. I'm not sure if this is the most recent version that isn't afflicted by this, but it's the one we settled on.
How to reproduce it (as minimally and precisely as possible):
Not sure, as I don't understand what the warning is warning me about to be honest, sorry.
Anything else we need to know?: I think the log extract covers it.
Environment:
grype version
: syft 0.78.0 + grype 0.61.0cat /etc/os-release
or similar): Travis VM (Focal)The text was updated successfully, but these errors were encountered: