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

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

Merged
merged 1 commit into from
Oct 28, 2020

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