about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2023-10-17 07:29:41 +0200
committerGitHub <noreply@github.com>2023-10-17 07:29:41 +0200
commit54952f4668027b8768ebe0ec983c6bec45c856d1 (patch)
tree1fd3e63be6d3f4c9c575e304e6bc2784cf4e5dc2 /pkgs/build-support
parent4c8c186137896a54467ac96cade5c4c8ba88def7 (diff)
parent21488e65a7c8001f37c2e14bfd8eeae177f20106 (diff)
Merge pull request #261413 from yu-re-ka/composer-vcs-repos
build-support/php: fix support of vcs repositories
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/php/hooks/composer-install-hook.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/php/hooks/composer-install-hook.sh b/pkgs/build-support/php/hooks/composer-install-hook.sh
index b1b5e2ac553dc..49ff0449719a4 100644
--- a/pkgs/build-support/php/hooks/composer-install-hook.sh
+++ b/pkgs/build-support/php/hooks/composer-install-hook.sh
@@ -77,9 +77,9 @@ composerInstallBuildHook() {
     # because the file contains hardcoded nix store paths, we generate it here.
     composer-local-repo-plugin --no-ansi build-local-repo -m "${composerRepository}" .
 
-    # Remove all the repositories of type "composer"
+    # Remove all the repositories of type "composer" and "vcs"
     # from the composer.json file.
-    jq -r -c 'del(try .repositories[] | select(.type == "composer"))' composer.json | sponge composer.json
+    jq -r -c 'del(try .repositories[] | select(.type == "composer" or .type == "vcs"))' composer.json | sponge composer.json
 
     # Configure composer to disable packagist and avoid using the network.
     composer config repo.packagist false