-
Notifications
You must be signed in to change notification settings - Fork 23
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
sbomnix: go and rust dependencies #67
Comments
I'd like to add that derivations that utilize Yarn2Nix for JavaScript projects suffer from the same problem. It seems Yarn2Nix produces plenty of intermediate Edit: This issue may be separate of the issue described in the initial issue, however it seems there is a potential solution for those using When I Maybe this approach of traversing the "deriver" edge could be a good starting point for other package helpers as well. Maybe some logic specific to each package helper would be needed (for example for Yarn2Nix searching the package graph for the derivation that contains all NPM dependencies). |
Hello @nikitawootten and thanks for your comment! When I
Now, If I run
Indeed, The difference between (1) and (2) is explained in the nix-store --query documentation:
Question: if you run |
Dependencies from rust and go projects are missing because they fetch their dependencies directly, so the dependencies are not included in the dependency trees produced by
nix-store --query --graph
, which is what sbomnix uses internally.For rust, this should be fixed with: NixOS/nixpkgs#217084, but the problem still persists for all other ecosystems that fetch their own dependencies.
All suggestions for how to improve the dependency lookup for sbomnix are welcome.
The text was updated successfully, but these errors were encountered: