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

Add hash, scope and deps to dart #1564

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

paul-doherty
Copy link
Contributor

The pubspec for dart was an older version. Since 2.15 the sha256 is included in the lock file. Used it to add hashes to the output, along with scope and the dependencies

I updated the pubspec parsing to load it as a yaml to avoid manually having to keep track of the package
I had dart update the example pubspec file

Signed-off-by: Paul <pdoherty@cergenx.com>
Signed-off-by: Paul <pdoherty@cergenx.com>
@paul-doherty paul-doherty requested a review from prabhu as a code owner January 15, 2025 17:24
@prabhu
Copy link
Collaborator

prabhu commented Jan 15, 2025

Thank you so much! Great improvement!

@paul-doherty
Copy link
Contributor Author

Thank you so much! Great improvement!

Happy to help! Great project keep up the good work

@prabhu prabhu added enhancement New feature or request dart labels Jan 15, 2025
@prabhu prabhu merged commit b39709f into CycloneDX:master Jan 15, 2025
18 of 20 checks passed
@malice00
Copy link
Contributor

malice00 commented Jan 15, 2025

Sorry to be a nuisance, but this PR doesn't work -- it kills all repo-builds on the flutter/gallery project!

When adding the --project-name and --project-version, cdxgen doesn't crash anymore, but there are lots of validation errors --> the dependencies are set to purl-type 'dart', which is incorrect -- it should be 'pub', like the components!

@prabhu
Copy link
Collaborator

prabhu commented Jan 16, 2025

Oops, apologies. Didn't see that the pkg type was changed.

@prabhu
Copy link
Collaborator

prabhu commented Jan 16, 2025

#1570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants