-
Notifications
You must be signed in to change notification settings - Fork 38
Hash the directory name of a package on install. #227
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
base: main
Are you sure you want to change the base?
Conversation
6c0bbec to
c8497ef
Compare
|
We already do this on direct install, fair-plugin/inc/packages/namespace.php Lines 646 to 676 in a6b8be8
|
|
That covers the "Direct Install" tab, whereas this covers the "Upload ZIP" or |
|
@costdev Where are we here? Is this ready for 1.1? |
In particular, this deals with the installation of a package without knowing its DID in advance. For example, when uploading the ZIP file of a plugin or theme. Signed-off-by: costdev <[email protected]>
Signed-off-by: costdev <[email protected]>
Signed-off-by: costdev <[email protected]>
Signed-off-by: costdev <[email protected]>
2ec0043 to
ea638e1
Compare
|
@Ipstenu Just rebased the PR branch on |
|
I think https://github.com/afragen/fair-plugin/tree/rename-theme-on-download also solves issue with at least some code reuse. |
This PR ensures that the directory name of a FAIR package is renamed to
slug-didhashon installation.In particular, this deals with the installation of a package without knowing its DID in advance. For example, when uploading the ZIP file of a plugin or theme.
See #228