Skip to content

Addons can get their directory without needing it in the manifest#2761

Merged
jasonvarga merged 1 commit intomasterfrom
feature/addon-directories
Oct 28, 2020
Merged

Addons can get their directory without needing it in the manifest#2761
jasonvarga merged 1 commit intomasterfrom
feature/addon-directories

Conversation

@jasonvarga
Copy link
Member

Currently, when you run php please addons:discover, (which happens when you composer install) it'll generate a cache file in bootstrap/cache/addons.php that has information about all the addons.

One of the things that get stored in there are the paths of each addon. It's a full path so it might be something like /Users/jason/addons/addon-name.

This isn't an issue if you're using Git and Composer to deploy, because the contents ofbootstrap/cache will be ignored and regenerated whenever you composer install on the server.

However, some users don't use Composer on their server, and just plop files up there through FTP. Now the server will see paths from the user's local dev environment instead of the server's paths, and things will break.

This PR makes it so that directories aren't stored in the manifest, making the file more portable.

See statamic/seo-pro#135

@jasonvarga jasonvarga merged commit 3b08793 into master Oct 28, 2020
@jasonvarga jasonvarga deleted the feature/addon-directories branch October 28, 2020 20:02
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