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

Improve license referenced_filenames handling #1364 #2681

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

pombredanne
Copy link
Member

In #2616 we introduced matching path of referenced_filenames.
This is adding several improvements based on #1364 particular
this comment:
#1364 (comment)

Only follow license references match an exact filename
In #2616 we introduced matching path of referenced_filenames
based on matching filename or path suffix. This removes path suffix
matching which is problematic.

Before this we were using .endswith(path) and this led to weird and
incorrect license dereferences

Signed-off-by: Philippe Ombredanne <[email protected]>
@pombredanne
Copy link
Member Author

This is just a first step. As a short term stopgap, let's put this feature behind a command line flag and documented as experimental

@pombredanne
Copy link
Member Author

This is just a first step. As a short term stopgap, let's put this feature behind a command line flag and documented as experimental. I suggest using for now a --unknown-license flag (that will likely change at a later stage)

@pombredanne
Copy link
Member Author

I am merging and I am adding the --unknown-license in a separated PR.

@pombredanne pombredanne merged commit 6c6b25a into develop Sep 3, 2021
@pombredanne pombredanne deleted the 1364-license-referenced-filenanames branch September 3, 2021 10:12
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.

1 participant