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

Ensure license files are tracked during installation so they can be removed #206

Merged
merged 5 commits into from
May 20, 2024

Conversation

radeksimko
Copy link
Member

Closes #197


The implementation has a few (intentional) side effects which may be worth calling out here:

  • We now treat all/any license files the same, be it Enterprise related files like EULA.txt or CE related files like LICENSE.txt. It keeps the implementation simple and I don't see harm in it.
  • When building the product from source, we also now copy the license file on a best effort basis, reflecting that the file name may not match LICENSE.txt but more often just LICENSE. The assumption I'm making there is that over time, those files would be renamed to LICENSE.txt and no renaming would happen as part of a release. Again though - it's just best-effort basis that seemed relatively low effort.

Out of scope

As the diff was growing larger I decided to keep the additional LicenseDir option out of scope for this PR but I'd be happy to address that in a separate PR. We agreed on the default behaviour anyway, so the future PR won't change that as it will be "opt in".

@radeksimko radeksimko added the bug Something isn't working label May 7, 2024
@radeksimko radeksimko requested a review from a team May 7, 2024 11:02
@kmoe
Copy link
Member

kmoe commented May 8, 2024

Would be nice to test this

@radeksimko
Copy link
Member Author

@kmoe tests added, PTAL

@radeksimko radeksimko merged commit 237ac6f into main May 20, 2024
11 checks passed
@radeksimko radeksimko deleted the b-cleanup-license-files branch May 20, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installer.Remove doesn't cleanup all files
2 participants