Skip to content

-no-cache argument for "composer install" and "composer update" - #7880

Merged
Seldaek merged 2 commits into
composer:masterfrom
Dzhuneyt:6650-disable-cache-argument
Jan 28, 2019
Merged

Seldaek merged 2 commits into
composer:masterfrom
Dzhuneyt:6650-disable-cache-argument

Conversation

@Dzhuneyt

@Dzhuneyt Dzhuneyt commented Jan 7, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #6650 and saltstack/salt#45093

However, I was only able to test it under Unix. If someone can check the solution under Windows - that'd be great. Tests run green.

@Seldaek
Seldaek merged commit 8c30b12 into composer:master Jan 28, 2019
Seldaek added a commit that referenced this pull request Jan 28, 2019
@Seldaek

Seldaek commented Jan 28, 2019

Copy link
Copy Markdown
Member

Thanks, see 02ceb74 tho for some review/changes.

aboks pushed a commit to aboks/composer that referenced this pull request Jan 31, 2019
@Dzhuneyt
Dzhuneyt deleted the 6650-disable-cache-argument branch February 1, 2019 13:08
@mnapoli

mnapoli commented Feb 4, 2019

Copy link
Copy Markdown

This is awesome!

However it creates this exception when there is a dependency using a git URL:

GitDriver requires a usable cache directory, and it looks like you set it to be disabled

Is there any way that the cache is still used when it's absolutely necessary? That would avoid the exception while still storing as little as possible on disk.

@Seldaek

Seldaek commented Feb 8, 2019

Copy link
Copy Markdown
Member

If you only care about disk space I think it'd be easiest to run it normally and then wipe the cache dir after your build is done.

@mnapoli

mnapoli commented Feb 8, 2019

Copy link
Copy Markdown

🤔 that's a good idea. I run Composer (and php-cs-fixer for https://prettyci.com/) on AWS Lambda, where I only have limited space in the /tmp folder. That would work, unless there's more of 500mb of composer cache, but I don't think that happens often! Thanks!

@Seldaek

Seldaek commented Feb 8, 2019

Copy link
Copy Markdown
Member

500mb sounds like a lot for a single install or update cycle.

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.

3 participants