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: collect evidences for license #1309

Merged
merged 28 commits into from
Oct 7, 2024
Merged

Conversation

Frozen-byte
Copy link
Contributor

@Frozen-byte Frozen-byte commented Oct 2, 2024

fixes #676

@Frozen-byte Frozen-byte requested a review from a team as a code owner October 2, 2024 22:55
package.json Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/extractor.ts Outdated Show resolved Hide resolved
src/plugin.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
@jkowalleck jkowalleck added the enhancement New feature or request label Oct 3, 2024
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/extractor.ts Outdated Show resolved Hide resolved
src/extractor.ts Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
src/_helpers.ts Outdated Show resolved Hide resolved
Copy link
Member

@jkowalleck jkowalleck left a comment

Choose a reason for hiding this comment

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

for tests, do not enable the new feature in all tests beds.
instead, create a new test bed dedicated to the feature, and enable the feature there.

@jkowalleck jkowalleck changed the title feat(EvidenceCollection): collect evidences for licence and copyright notices feat: collect evidences for license Oct 5, 2024
@Frozen-byte
Copy link
Contributor Author

for tests, do not enable the new feature in all tests beds. instead, create a new test bed dedicated to the feature, and enable the feature there.

I copied the folder from exampleWebpack5Angular17 to feature-issue676.
After that, I updated it to angular18 and enabled the evidence option and ran the tests with updating the snapshot.

This error worries me when I execute setup-test:
➤ YN0002: │ @cyclonedx-webpack-plugin-tests/regression-issue1284-yarn@workspace:. Doesn't provide @popperjs/core (pb1d91), requested by bootstrap.
I do not think it is caused by these changes and might be a local problem?
Haven't investigated further, but just FYI.

@Frozen-byte
Copy link
Contributor Author

Frozen-byte commented Oct 7, 2024

In addition, my revert commit 3fdd595fe4e9469e8083bcbc888b0084488c455b was not signed off somehow.

Should I leave it? Or renaming this commit one and force pushing a new history? Or will this break things even further?

@jkowalleck
Copy link
Member

jkowalleck commented Oct 7, 2024

In addition, my revert commit 3fdd595fe4e9469e8083bcbc888b0084488c455b was not signed off somehow.

Should I leave it? Or renaming this commit one and force pushing a new history? Or will this break things even further?

We need every commit signed-off. Here are instructions how this can be done via rebase/force-push:
https://github.com/CycloneDX/cyclonedx-webpack-plugin/pull/1309/checks?check_run_id=31165850595

Since you are the only person working on this branch, i don't see any risks. Go ahead :D

@jkowalleck
Copy link
Member

for tests, do not enable the new feature in all tests beds. instead, create a new test bed dedicated to the feature, and enable the feature there.

I copied the folder from exampleWebpack5Angular17 to feature-issue676. After that, I updated it to angular18 and enabled the evidence option and ran the tests with updating the snapshot.

This error worries me when I execute setup-test: ➤ YN0002: │ @cyclonedx-webpack-plugin-tests/regression-issue1284-yarn@workspace:. Doesn't provide @popperjs/core (pb1d91), requested by bootstrap. I do not think it is caused by these changes and might be a local problem? Haven't investigated further, but just FYI.

Either yarn takes care of the missing (peer)dependency, or we just dont care.
Anyway, this is probably no show stopper.

Signed-off-by: Jan Kowalleck <[email protected]>
@jkowalleck
Copy link
Member

jkowalleck commented Oct 7, 2024

@Frozen-byte thank you for the contribution. 🚀

I will merge it, and might add some small polishing.

PS: polishing via #1312

@jkowalleck jkowalleck merged commit 77df409 into CycloneDX:master Oct 7, 2024
12 checks passed
jkowalleck added a commit that referenced this pull request Oct 8, 2024
followup of #1309

- fixed some false-positives for license evidences.
- refactored some functionality, so that it is much easier to add #1310
later

Signed-off-by: Jan Kowalleck <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEAT: Option to add license text to BOM output
2 participants