From 1564e650f8e01d583a1288b75678b7aba3c2b0f4 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 17 Sep 2024 00:28:09 +0200 Subject: [PATCH] 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 --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bda1de0..33a664b 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true, "johnpbloch/wordpress-core-installer": true - } + }, + "lock": false }, "extra": { "branch-alias": {