Skip to content

Commit

Permalink
Composer: prevent a lock file from being created
Browse files Browse the repository at this point in the history
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.

As for this package, none of the dependencies need to be locked, we can use this option.

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
  • Loading branch information
jrfnl committed Nov 11, 2024
1 parent ff0758e commit 49a6a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/installers": true
},
"classmap-authoritative": true
"classmap-authoritative": true,
"lock": false
},
"scripts": {
"lint": [
Expand Down

0 comments on commit 49a6a92

Please sign in to comment.