Skip to content

Adamamont/composer-no-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer No Download Packages

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

About

A composer plugin that prevents composer from downloading packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages