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

feat: indicate whether a dependency is direct in pomxmlnet extractor #504

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cuixq
Copy link
Collaborator

@cuixq cuixq commented Feb 28, 2025

Add a new field to Java's metadata to indicate whether a dependency is direct or not. Currently this is only set in pomxmlnet extractor.

@cuixq cuixq marked this pull request as ready for review February 28, 2025 04:46
@@ -22,6 +22,7 @@ type Metadata struct {
Type string
Classifier string
DepGroupVals []string
IsDirect bool // Only set in pomxmlnet extractor
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add this to the proto format:

message JavaLockfileMetadata {

Incl. the conversion in proto.go
And then regenerate scan_result.pb.go with "make protos"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done - however, do we want to use specific version of protoc?

@cuixq
Copy link
Collaborator Author

cuixq commented Mar 3, 2025

I may hold this PR for some time considering that there are discussions on use cases of the transitive extractor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants