Skip to content

Composer: prevent a lock file from being created#54

Merged
swissspidy merged 1 commit into
wp-cli:mainfrom
jrfnl:feature/composer-no-lock
Oct 1, 2024
Merged

Composer: prevent a lock file from being created#54
swissspidy merged 1 commit into
wp-cli:mainfrom
jrfnl:feature/composer-no-lock

Conversation

@jrfnl

@jrfnl jrfnl commented Sep 16, 2024

Copy link
Copy Markdown
Contributor

Composer 1.10.0 introduced a lock config option, which, when set to false will prevent a composer.lock file from being created and will ignore it when one exists.

This is a useful option for packages such as this where the lock file has no meaning.

It also makes life more straight-forward for contributors as they don't have to remember that for this repo they should use composer update instead of composer install. Both will now work the same.

Refs:
https://getcomposer.org/doc/06-config.md#lock

Composer 1.10.0 introduced a `lock` config option, which, when set to `false` will prevent a `composer.lock` file from being created and will ignore it when one exists.

This is a useful option for packages such as this where the `lock` file has no meaning.

It also makes life more straight-forward for contributors as they don't have to remember that for this repo they should use `composer update` instead of `composer install`. Both will now work the same.

Refs:
https://getcomposer.org/doc/06-config.md#lock
@jrfnl
jrfnl requested a review from a team as a code owner September 16, 2024 22:32
@swissspidy
swissspidy merged commit 02a7c95 into wp-cli:main Oct 1, 2024
@swissspidy swissspidy added this to the 2.0.5 milestone Oct 1, 2024
@jrfnl
jrfnl deleted the feature/composer-no-lock branch October 1, 2024 12:21
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.

2 participants