-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add local composer cache #290
base: master
Are you sure you want to change the base?
Conversation
Composer 1 and 2 has different defaults for cache dir ( https://github.com/composer/composer/blob/2.0.0-RC2/doc/03-cli.md#composer_home
Also each php container needs own global set of packages so we can't share its home |
f045ce1
to
4c9255a
Compare
4c9255a
to
ce0828e
Compare
ce0828e
to
05f75c9
Compare
For core development I'm using local mounts volumes:
- ./:/var/www/html/web
- /home/andypost/.cache/composer:/home/www-data/.composer/cache |
That's cool, would $USER variable work here ? |
I'm sure we can't bet on it as every OS it different locally https://github.com/composer/composer/blob/2.0.0-RC2/doc/03-cli.md#composer_home So local cache place is user's preference, maybe example of it helpful, thanks will update asap
|
Still looks more viable to use https://github.com/composer/composer/blob/2.0/doc/03-cli.md#composer_cache_dir to share only cache directory |
Alternative to #278
Just keeps changes smaller, the
.cache
dir already exists if database defined or will be created by composer on first run