summary refs log tree commit diff
path: root/pkgs/build-support/php/hooks/composer-install-hook.sh
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-10-17 06:01:51 +0000
committerGitHub <noreply@github.com>2023-10-17 06:01:51 +0000
commit97d01825832a1071966c64e7f624bd3e39ddac34 (patch)
treeaae6981a71e0943b48663582dc0553ca9da8289a /pkgs/build-support/php/hooks/composer-install-hook.sh
parentba519bf3b17452d3abb828cdf86d3a4c84e7b835 (diff)
parentc61915bc9615d3995d4f4dae505ae68a359eab7b (diff)
downloadnixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.tar
nixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.tar.gz
nixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.tar.bz2
nixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.tar.lz
nixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.tar.xz
nixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.tar.zst
nixpkgs-97d01825832a1071966c64e7f624bd3e39ddac34.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/build-support/php/hooks/composer-install-hook.sh')
-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 b1b5e2ac553..49ff0449719 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