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 additional license filenames #2227

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

coheigea
Copy link
Contributor

These additions help Syft to correctly identify licenses for:

For the first point we could instead do a case insensitive check on the filenames, but I thought that was probably overkill.

Signed-off-by: Colm O hEigeartaigh <[email protected]>
@wagoodman
Copy link
Contributor

For the first point we could instead do a case insensitive check on the filenames...

actually, I think ultimately we should be doing that. I can't think of a case where case should matter for a filename for the use case of "is this a common license path or not". We can get this in first though 👍

@wagoodman wagoodman enabled auto-merge (squash) October 16, 2023 13:06
@wagoodman wagoodman merged commit 144ed72 into anchore:main Oct 16, 2023
9 checks passed
wagoodman added a commit that referenced this pull request Oct 16, 2023
Signed-off-by: Alex Goodman <[email protected]>
@coheigea coheigea deleted the coheigea/additional-licenses branch October 16, 2023 14:09
@coheigea
Copy link
Contributor Author

Updated PR for case insensitive matching: #2235

wagoodman added a commit that referenced this pull request Oct 17, 2023
* remove internal string set

Signed-off-by: Alex Goodman <[email protected]>

* incorporate changes from #2227

Signed-off-by: Alex Goodman <[email protected]>

* beef up the pkg.License.Merg() doc string

Signed-off-by: Alex Goodman <[email protected]>

---------

Signed-off-by: Alex Goodman <[email protected]>
@wagoodman wagoodman added the enhancement New feature or request label Oct 20, 2023
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* Add additional license filenames

Signed-off-by: Colm O hEigeartaigh <[email protected]>

* add comment about the license list being manually updated

Signed-off-by: Alex Goodman <[email protected]>

---------

Signed-off-by: Colm O hEigeartaigh <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Co-authored-by: Alex Goodman <[email protected]>
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* remove internal string set

Signed-off-by: Alex Goodman <[email protected]>

* incorporate changes from anchore#2227

Signed-off-by: Alex Goodman <[email protected]>

* beef up the pkg.License.Merg() doc string

Signed-off-by: Alex Goodman <[email protected]>

---------

Signed-off-by: Alex Goodman <[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.

2 participants