You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: If Go dependencies do not list all of their dependencies in their own go.mod files, these transitive dependencies are included in the top level project go.mod file. They can be identified by the comment // indirect. See go modules reference.
Expected Behaviour: When running vet scan without passing the --transitive flag, I expect to scan only direct dependencies that I have explicitly imported. I should not see any dependencies from my go.mod which are commented with // indirect.
Actual Behaviour: The indirect dependencies are included in the scan.
The text was updated successfully, but these errors were encountered:
@OmkarPh Can you please do an analysis of this issue and share your findings? Since we use osv-scannerlockfile package for parsing go.mod files, I think we have to explore there if it differentiates between direct and transitive dependencies
Context: If Go dependencies do not list all of their dependencies in their own go.mod files, these transitive dependencies are included in the top level project go.mod file. They can be identified by the comment
// indirect
. See go modules reference.Expected Behaviour: When running
vet scan
without passing the--transitive
flag, I expect to scan only direct dependencies that I have explicitly imported. I should not see any dependencies from my go.mod which are commented with// indirect
.Actual Behaviour: The indirect dependencies are included in the scan.
The text was updated successfully, but these errors were encountered: