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

fix(REUSELicensesPlugin): remove duplicates in license files #293

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Aug 12, 2024

  • new Set() of object array doesn't remove duplicates, because object with the same values still have different references
  • Using Map with serialized key to remove duplicates

@ShGKme ShGKme added bug Something isn't working 3. to review Ready to review labels Aug 12, 2024
@ShGKme ShGKme requested a review from susnux August 12, 2024 21:51
@ShGKme ShGKme self-assigned this Aug 12, 2024
@susnux
Copy link
Contributor

susnux commented Aug 22, 2024

Makes sense, even if using a map like this seems a bit bad it is probably ok :)

@susnux susnux merged commit 1f83544 into main Aug 22, 2024
11 checks passed
@susnux susnux deleted the fix/remove-duplicated-licenses branch August 22, 2024 12:01
@susnux
Copy link
Contributor

susnux commented Aug 22, 2024

/backport to stable1

@ShGKme
Copy link
Contributor Author

ShGKme commented Aug 22, 2024

even if using a map like this seems a bit bad

Why? IMO, it seems direct Map's job. It's the same as Set, but with an associated value with the set item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants