Skip to content

Exclude dev/test gems with GPL license to simplify license compliance#2525

Closed
rkoster wants to merge 1 commit into
mainfrom
exclude-unused-files-with-gpl-license
Closed

Exclude dev/test gems with GPL license to simplify license compliance#2525
rkoster wants to merge 1 commit into
mainfrom
exclude-unused-files-with-gpl-license

Conversation

@rkoster

@rkoster rkoster commented May 28, 2024

Copy link
Copy Markdown
Contributor

While looking at BlackDuck scan results I noticed that there are a few dev/test gems that bring (strong) copy left licenses.
Since these gems are not a runtime dependency, let's try and exclude these from our final releases.

@rkoster rkoster requested review from a team, aramprice, beyhan and selzoc and removed request for a team May 28, 2024 10:19
Comment thread packages/director/spec
- vendor/cache/netaddr-rb-*/**

excluded_files:
- vendor/cache/{bundle-audit,bundler-audit,coderay}-*.gem # test dependency with GPL license

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

coderay appears to have had an MIT license for at least 12 years. Doesn't hurt to exclude it, but perhaps not necessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah might be a BlackDuck issue, it performs a file match/snippet signature match or something like that and some files might have not changed in the past 12 years...

@selzoc

selzoc commented May 29, 2024

Copy link
Copy Markdown
Member

@rkoster have you built/deployed/tested with this configuration, or are you depending on the pipeline to fail after this is merged? It seems like a fine change.

@klakin-pivotal

Copy link
Copy Markdown
Contributor

@selzoc shouldn't we -at minimum- correct the comment introduced by the modification?

@selzoc

selzoc commented May 29, 2024

Copy link
Copy Markdown
Member

@selzoc shouldn't we -at minimum- correct the comment introduced by the modification?

You mean coderay having an MIT license? Yes, agreed.

@rkoster

rkoster commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

I have not tested this change myself and was hoping to rely on the pipeline for that. I did create a release with these changes and verified the it resolved some of the license compliance issues Black Duck found, and it did.

@rkoster

rkoster commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

I'm also thinking about maybe excluding all gems from test groups. What do you y'all think?

@aramprice

Copy link
Copy Markdown
Member

I'm worried about the fragility of hand-coded exclusions. Probably fine for the time being but perhaps there is a bundle flag to exclude non-production gems from vendor/cache/ all together?

@rkoster rkoster marked this pull request as draft June 20, 2024 14:48
@aramprice

Copy link
Copy Markdown
Member

Its been ~2 years, should we close this? Or maybe revisit the idea in a more wholistic way for the CF ruby ecosystem?

@rkoster rkoster closed this Jun 5, 2026
@github-project-automation github-project-automation Bot moved this from Pending Review | Discussion to Done in Foundational Infrastructure Working Group Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

5 participants