Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer: prevent a lock file from being created #81

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Nov 7, 2024

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 libraries such as this where the lock file has no meaning.

It also makes life easier 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 libraries such as this where the `lock` file has no meaning.

It also makes life easier 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 added this to the 1.x Next Release milestone Nov 7, 2024
@coveralls
Copy link

Coverage Status

coverage: 99.167%. remained the same
when pulling ed1d8a1 on JRF/composer-no-lock
into a5464a9 on develop.

@jrfnl jrfnl merged commit 24ebd6a into develop Nov 7, 2024
16 checks passed
@jrfnl jrfnl deleted the JRF/composer-no-lock branch November 7, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants