Skip to content

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

Merged
radeksimko merged 5 commits intomainfrom
b-cleanup-license-files
May 20, 2024
Merged

Ensure license files are tracked during installation so they can be removed#206
radeksimko merged 5 commits intomainfrom
b-cleanup-license-files

Conversation

@radeksimko
Copy link
Copy Markdown
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 force-pushed the b-cleanup-license-files branch from 47239cc to 5645b93 Compare May 7, 2024 10:26
@radeksimko radeksimko requested a review from a team May 7, 2024 11:02
@radeksimko radeksimko force-pushed the b-cleanup-license-files branch from 5645b93 to 23c95da Compare May 8, 2024 08:28
@kmoe
Copy link
Copy Markdown
Member

kmoe commented May 8, 2024

Would be nice to test this

@radeksimko
Copy link
Copy Markdown
Member Author

@kmoe tests added, PTAL

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