Skip to content

Commit 038883f

Browse files
committed
Composer: prevent a lock file from being created
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
1 parent 03d19f7 commit 038883f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"sort-packages": true,
1919
"allow-plugins": {
2020
"dealerdirect/phpcodesniffer-composer-installer": true
21-
}
21+
},
22+
"lock": false
2223
},
2324
"minimum-stability": "dev",
2425
"prefer-stable": true,

0 commit comments

Comments
 (0)