adamamont / composer-no-download
A composer plugin that prevents composer from downloading packages
Package info
github.com/Adamamont/composer-no-download
Type:composer-plugin
pkg:composer/adamamont/composer-no-download
Requires
- composer-plugin-api: ^1.1
Requires (Dev)
- composer/composer: ^1.8
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-08 09:24:52 UTC
README
This plugin prevents composer to download packages, but let him update composer.lock with correct infos.
This is useful in CI/CD pipelines, where you need to just update the composer.lock file, but you're not interested in having PHP libraries be physically installed in your /vendor folder.
Installation
composer require adamamont/composer-no-download
Use env variable COMPOSER-NO-DOWNLOAD with value "apply" for plugin activation
Example (Jenkins pipeline)
withEnv(["COMPOSER-NO-DOWNLOAD=apply"]) {
sh "composer update"
}
Thanks @edubacco for solution