adamamont/composer-no-download

There is no license information available for the latest version (1.0) of this package.

A composer plugin that prevents composer from downloading packages

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 1

Type:composer-plugin

pkg:composer/adamamont/composer-no-download

1.0 2020-03-26 21:28 UTC

This package is auto-updated.

Last update: 2025-09-27 10:10:15 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