Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected problems with create-project after upgrading to 2.6.x #11613

Closed
stronk7 opened this issue Sep 1, 2023 · 10 comments
Closed

Unexpected problems with create-project after upgrading to 2.6.x #11613

stronk7 opened this issue Sep 1, 2023 · 10 comments
Milestone

Comments

@stronk7
Copy link

stronk7 commented Sep 1, 2023

My composer.json:

{
  "name": "moodlehq/moodle-plugin-ci",
  "description": "Helps running Moodle plugins analysis checks and tests under various CI environments.",
  "keywords": ["moodle", "travis", "ci", "testing", "github", "actions"],
  "type": "project",
  "license": "GPL-3.0-or-later",
  "authors": [
    {
      "name": "Eloy Lafuente",
      "email": "stronk7@moodle.com",
      "homepage": "https://moodle.com",
      "role": "Maintainer"
    },
    {
      "name": "Ruslan Kabalin",
      "email": "ruslan@moodle.com",
      "homepage": "https://moodle.com",
      "role": "Maintainer"
    },
    {
      "name": "Mark Nielsen",
      "email": "mark.nielsen@blackboard.com",
      "homepage": "https://www.blackboard.com",
      "role": "Developer"
    },
    {
      "name": "Sam Chaffee",
      "email": "sam.chaffee@blackboard.com",
      "homepage": "https://www.blackboard.com",
      "role": "Developer"
    }
  ],
  "support": {
    "issues": "https://github.com/moodlehq/moodle-plugin-ci/issues",
    "source": "https://github.com/moodlehq/moodle-plugin-ci",
    "docs": "https://moodlehq.github.io/moodle-plugin-ci/"
  },
  "repositories": [
    {
      "type": "package",
      "package": {
        "name": "moodlehq/moodle-local_ci",
        "version": "1.0.19",
        "source": {
          "url": "https://github.com/moodlehq/moodle-local_ci.git",
          "type": "git",
          "reference": "v1.0.19"
        }
      }
    },
    {
      "type": "package",
      "package": {
        "name": "moodlehq/moodle-local_moodlecheck",
        "version": "1.1.6",
        "source": {
          "url": "https://github.com/moodlehq/moodle-local_moodlecheck.git",
          "type": "git",
          "reference": "v1.1.6"
        }
      }
    }
  ],
  "require": {
    "php": ">=7.4",
    "moodlehq/moodle-cs": "^3.3.4",
    "moodlehq/moodle-local_ci": "^1.0.19",
    "moodlehq/moodle-local_moodlecheck": "^1.1.6",
    "sebastian/phpcpd": "^6.0.3",
    "sebastian/version": "^3.0.2",
    "phpunit/php-timer": "^5.0.3",
    "phpmd/phpmd": "^2.12",
    "symfony/dotenv": "^5.4",
    "symfony/filesystem": "^5.4",
    "symfony/finder": "^5.4",
    "symfony/console": "^5.4",
    "symfony/yaml": "^5.4",
    "symfony/process": "^5.4",
    "php-parallel-lint/php-parallel-lint": "^1.3.2",
    "php-parallel-lint/php-console-highlighter": "^1.0.0",
    "psr/log": "^1.1.4",
    "nikic/php-parser": "^4.14",
    "marcj/topsort": "^2.0.0",
    "phpcompatibility/php-compatibility": "dev-develop#70e4ca24"
  },
  "require-dev": {
    "phpunit/phpunit": "^9.5",
    "mockery/mockery": "^1.5.0",
    "friendsofphp/php-cs-fixer": "^3.4.0",
    "vimeo/psalm": "^5.4.0"
  },
  "config": {
    "platform": {
      "php": "7.4.0"
    },
    "allow-plugins": {
      "dealerdirect/phpcodesniffer-composer-installer": true
    }
  },
  "autoload": {
    "psr-4": {
      "MoodlePluginCI\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "MoodlePluginCI\\Tests\\": "tests/"
    }
  },
  "bin": [
    "bin/moodle-plugin-ci"
  ],
  "scripts": {
    "post-install-cmd": "@local-ci-install",
    "post-update-cmd": "@local-ci-install",
    "post-create-project-cmd": "@local-ci-install",
    "local-ci-install": [
      "@composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci",
      "cd vendor/moodlehq/moodle-local_ci && npm install --no-progress"
    ]
  }
}

Output of composer diagnose:

Checking composer.json: WARNING
The package "phpcompatibility/php-compatibility" is pointing to a commit-ref, this is bad practice and can cause unforeseen issues.
Checking platform settings: OK
Checking git settings: OK git version 2.41.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.6.1
PHP version: 7.4.0 - Package overridden via config.platform, actual: 8.2.8
PHP binary path: /opt/local/bin/php82
OpenSSL version: OpenSSL 3.1.1 30 May 2023
cURL version: 8.2.1 libz 1.2.13 ssl OpenSSL/3.1.2
zip: extension present, unzip present, 7-Zip present (7zz)

When I run this command:

php composer.phar create-project -n --no-dev --prefer-dist -vvv moodlehq/moodle-plugin-ci ci ^4

I get the following output:

(note that this is a BIG loop/recursion with everything being installed once and again and again and again. So it's HUGE!)
(I have removed a lot of lines in the middle of the loop because GitHub was failing with "Comment is too long - max 64Kb" error. The recursion leads to very long paths)

Running 2.6.1 (2023-09-01 13:53:08) with PHP 8.2.8 on Darwin / 22.6.0
Reading ./composer.json (/Users/stronk7/git_moodle/moodle-plugin-ci/composer.json)
Loading config file /Users/stronk7/.composer/config.json
Loading config file /Users/stronk7/.composer/auth.json
Loading config file ./composer.json (/Users/stronk7/git_moodle/moodle-plugin-ci/composer.json)
Checked CA file /opt/local/share/curl/curl-ca-bundle.crt: valid
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Failed to initialize global composer: Composer could not find the config file: /Users/stronk7/.composer/composer.json

Creating a "moodlehq/moodle-plugin-ci" project at "./ci"
Loading config file /Users/stronk7/.composer/config.json
Loading config file /Users/stronk7/.composer/auth.json
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Failed to initialize global composer: Composer could not find the config file: /Users/stronk7/.composer/composer.json

Reading /Users/stronk7/Library/Caches/composer/repo/https---repo.packagist.org/packages.json from cache
Downloading https://repo.packagist.org/packages.json if modified
[304] https://repo.packagist.org/packages.json
Reading /Users/stronk7/Library/Caches/composer/repo/https---repo.packagist.org/provider-moodlehq~moodle-plugin-ci.json from cache
Downloading https://repo.packagist.org/p2/moodlehq/moodle-plugin-ci.json if modified
[304] https://repo.packagist.org/p2/moodlehq/moodle-plugin-ci.json
Installing moodlehq/moodle-plugin-ci (4.1.1)
Reading /Users/stronk7/Library/Caches/composer/files/moodlehq/moodle-plugin-ci/279106d6b59bc44dc90a85b6ad1a1a7be1722a3d.zip from cache
  - Loading moodlehq/moodle-plugin-ci (4.1.1) from cache
  - Installing moodlehq/moodle-plugin-ci (4.1.1): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/vendor/composer/tmp-cd2b87e847dea97bd12d816572a8adbb.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/vendor/composer/274f3bec'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/vendor/composer/274f3bec'
Downloading https://packagist.org/downloads/
[201] https://packagist.org/downloads/
Created project in /Users/stronk7/git_moodle/moodle-plugin-ci/ci
Reading /Users/stronk7/git_moodle/moodle-plugin-ci/ci/composer.json
Loading config file /Users/stronk7/.composer/config.json
Loading config file /Users/stronk7/.composer/auth.json
Loading config file /Users/stronk7/git_moodle/moodle-plugin-ci/ci/composer.json (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/composer.json)
Failed to initialize global composer: Composer could not find the config file: /Users/stronk7/.composer/composer.json

Reading /Users/stronk7/git_moodle/moodle-plugin-ci/ci/composer.lock
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Reading /Users/stronk7/git_moodle/moodle-plugin-ci/ci/composer.lock
Built pool.
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.000 seconds
Package operations: 41 installs, 0 updates, 0 removals
Installs: squizlabs/php_codesniffer:3.7.2, dealerdirect/phpcodesniffer-composer-installer:v1.0.0, composer/pcre:3.1.0, marcj/topsort:2.0.0, phpcsstandards/phpcsutils:1.0.7, phpcompatibility/php-compatibility:dev-develop 70e4ca24, moodlehq/moodle-cs:v3.3.4, moodlehq/moodle-local_ci:1.0.19, moodlehq/moodle-local_moodlecheck:1.1.6, nikic/php-parser:v4.16.0, php-parallel-lint/php-console-color:v1.0.1, php-parallel-lint/php-console-highlighter:v1.0.0, php-parallel-lint/php-parallel-lint:v1.3.2, symfony/polyfill-php80:v1.27.0, symfony/polyfill-mbstring:v1.27.0, symfony/polyfill-ctype:v1.27.0, symfony/filesystem:v5.4.25, symfony/deprecation-contracts:v2.5.2, psr/container:1.1.2, symfony/service-contracts:v2.5.2, symfony/polyfill-php81:v1.27.0, symfony/dependency-injection:v5.4.25, symfony/config:v5.4.21, pdepend/pdepend:2.14.0, psr/log:1.1.4, composer/xdebug-handler:3.0.3, phpmd/phpmd:2.13.0, sebastian/version:3.0.2, sebastian/cli-parser:1.0.1, phpunit/php-timer:5.0.3, phpunit/php-file-iterator:3.0.6, sebastian/phpcpd:6.0.3, symfony/polyfill-intl-normalizer:v1.27.0, symfony/polyfill-intl-grapheme:v1.27.0, symfony/string:v5.4.22, symfony/polyfill-php73:v1.27.0, symfony/console:v5.4.24, symfony/dotenv:v5.4.22, symfony/finder:v5.4.21, symfony/process:v5.4.24, symfony/yaml:v5.4.23
Reading /Users/stronk7/Library/Caches/composer/files/squizlabs/php_codesniffer/58ec4a693d8f9adb1e5826bc1ce397df19bfe99b.zip from cache
  - Loading squizlabs/php_codesniffer (3.7.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/dealerdirect/phpcodesniffer-composer-installer/1596a02f7987700786c6196ee0aa5c5be30f6c0f.zip from cache
  - Loading dealerdirect/phpcodesniffer-composer-installer (v1.0.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/composer/pcre/16ea22f0a3bddd3c7683dfc2378869ab617d3036.zip from cache
  - Loading composer/pcre (3.1.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/marcj/topsort/46516ff8cc708386314622d32e62fe70806552f1.zip from cache
  - Loading marcj/topsort (2.0.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/phpcsstandards/phpcsutils/7a32d4a596bec18f3be1ede0da60a1aa77386043.zip from cache
  - Loading phpcsstandards/phpcsutils (1.0.7) from cache
Reading /Users/stronk7/Library/Caches/composer/files/phpcompatibility/php-compatibility/5e13ab2c1866f0c1274d6f73b52f3bac57515ee0.zip from cache
  - Loading phpcompatibility/php-compatibility (dev-develop 70e4ca24) from cache
Reading /Users/stronk7/Library/Caches/composer/files/moodlehq/moodle-cs/76662374e0f86f6ac44310d84255418e17973430.zip from cache
  - Loading moodlehq/moodle-cs (v3.3.4) from cache
Executing command (CWD): git --version
  - Syncing moodlehq/moodle-local_ci (1.0.19) into cache
    Cloning to cache at '/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-ci.git/'
Executing command (/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-ci.git/): git rev-parse --git-dir
Executing command (/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-ci.git/): git rev-parse --quiet --verify 'v1.0.19^{commit}'
  - Syncing moodlehq/moodle-local_moodlecheck (1.1.6) into cache
    Cloning to cache at '/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-moodlecheck.git/'
Executing command (/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-moodlecheck.git/): git rev-parse --git-dir
Executing command (/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-moodlecheck.git/): git rev-parse --quiet --verify 'v1.1.6^{commit}'
Reading /Users/stronk7/Library/Caches/composer/files/nikic/php-parser/8dad12acfb0e3f1ed908842c523e7e7e5d683350.zip from cache
  - Loading nikic/php-parser (v4.16.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/php-parallel-lint/php-console-color/4422169394cb77471c500171ec0ed199eac48002.zip from cache
  - Loading php-parallel-lint/php-console-color (v1.0.1) from cache
Reading /Users/stronk7/Library/Caches/composer/files/php-parallel-lint/php-console-highlighter/5bcc16ac79e4781c8d7e0e39e4f432bfda3bb90f.zip from cache
  - Loading php-parallel-lint/php-console-highlighter (v1.0.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/php-parallel-lint/php-parallel-lint/3faf41af26b0409facb844af911c4b03b5de09e6.zip from cache
  - Loading php-parallel-lint/php-parallel-lint (v1.3.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-php80/fe4df98f0392f59ca247eec4d07f380451c09242.zip from cache
  - Loading symfony/polyfill-php80 (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-mbstring/7061da8bfb2a98acfbdcaf076c3ba5f167d856cc.zip from cache
  - Loading symfony/polyfill-mbstring (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-ctype/04e84c03a82a82c09eaa688b17b523570f9d14d2.zip from cache
  - Loading symfony/polyfill-ctype (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/filesystem/d0c2e80215bb0fc4ccf6413735191436d65857d2.zip from cache
  - Loading symfony/filesystem (v5.4.25) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/deprecation-contracts/7901e5c1b07f210519f820a73a327361a010e87b.zip from cache
  - Loading symfony/deprecation-contracts (v2.5.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/psr/container/c7b72f2e0f05d2f90784a26bd6061183617518f5.zip from cache
  - Loading psr/container (1.1.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/service-contracts/7eaa59375569220e7c3f20dec665053292d31683.zip from cache
  - Loading symfony/service-contracts (v2.5.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-php81/05342953cef79782b0eb31a71035b4ad15818809.zip from cache
  - Loading symfony/polyfill-php81 (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/dependency-injection/480a240e2e983aec8eaa48530ce0c24c73b86ca7.zip from cache
  - Loading symfony/dependency-injection (v5.4.25) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/config/cb5b1462e3f60dd27bca2bb79163b15867e4bc02.zip from cache
  - Loading symfony/config (v5.4.21) from cache
Reading /Users/stronk7/Library/Caches/composer/files/pdepend/pdepend/f8b42a4cdc44820a4b39727b7658eeb768fb4665.zip from cache
  - Loading pdepend/pdepend (2.14.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/psr/log/73bdffd901b564d0a2f7244baecb66a2572fcfc4.zip from cache
  - Loading psr/log (1.1.4) from cache
Reading /Users/stronk7/Library/Caches/composer/files/composer/xdebug-handler/524bae0e78ed4946a977f22dc3ff8629f96dfaf7.zip from cache
  - Loading composer/xdebug-handler (3.0.3) from cache
Reading /Users/stronk7/Library/Caches/composer/files/phpmd/phpmd/db75ab2c22389e8d1c4b5f0ac1f44c94681a2c90.zip from cache
  - Loading phpmd/phpmd (2.13.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/sebastian/version/85e202da271e8389420827021d6c4f00bdd90951.zip from cache
  - Loading sebastian/version (3.0.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/sebastian/cli-parser/f4b297cc8d9ba3ba47f6d1c84b9d69bac882a7b1.zip from cache
  - Loading sebastian/cli-parser (1.0.1) from cache
Reading /Users/stronk7/Library/Caches/composer/files/phpunit/php-timer/b71ded866a460bbdb922b5eb818f4ed163f38f0c.zip from cache
  - Loading phpunit/php-timer (5.0.3) from cache
Reading /Users/stronk7/Library/Caches/composer/files/phpunit/php-file-iterator/4fd4ef934d9b090aff1c14e5987f251c5d6b2d0c.zip from cache
  - Loading phpunit/php-file-iterator (3.0.6) from cache
Reading /Users/stronk7/Library/Caches/composer/files/sebastian/phpcpd/c2bb47e4f1926ce937b3ee84d255f4acc869a7cd.zip from cache
  - Loading sebastian/phpcpd (6.0.3) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-intl-normalizer/3282f96073427a186419bc5ae65aa6726d0f143b.zip from cache
  - Loading symfony/polyfill-intl-normalizer (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-intl-grapheme/3e0defb9f075160deb0ea7188610275ee40a9b00.zip from cache
  - Loading symfony/polyfill-intl-grapheme (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/string/37240eea1e07d0aec57204211a45a3f94bd67b53.zip from cache
  - Loading symfony/string (v5.4.22) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/polyfill-php73/59decce6cd168d4c88a56c849ead702a5b1f3c62.zip from cache
  - Loading symfony/polyfill-php73 (v1.27.0) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/console/cc7b7c4d4e78ff8d4f5e64c0a43e9b9136f03553.zip from cache
  - Loading symfony/console (v5.4.24) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/dotenv/1d74b25c154a9c9a7dfc253c4298beec7ee376b3.zip from cache
  - Loading symfony/dotenv (v5.4.22) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/finder/3a57e1eb2528dbc0ae8a5159fb3d270c9ccdaa1e.zip from cache
  - Loading symfony/finder (v5.4.21) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/process/50d77e1f0dbb15426aca11e5d02db19cc3e2f6b1.zip from cache
  - Loading symfony/process (v5.4.24) from cache
Reading /Users/stronk7/Library/Caches/composer/files/symfony/yaml/596b4233a7b1e754f0f2944342e6328be20181b5.zip from cache
  - Loading symfony/yaml (v5.4.23) from cache
  - Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-67db9700f9d12f258e97df35c8d774b3.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/d9568ea3'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/d9568ea3'
  - Installing dealerdirect/phpcodesniffer-composer-installer (v1.0.0): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-98299a8ff4114f3b503ba527d6778ea8.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/f2914eab'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/f2914eab'
Loading plugin PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin (from dealerdirect/phpcodesniffer-composer-installer)
  - Installing composer/pcre (3.1.0): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-d3c0ff0b0c97d5c1d93cb8ce38bb0394.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/a4d4d80d'
  - Installing marcj/topsort (2.0.0): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-273164a3e3513c65eed3b44d924b7c62.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/71e01822'
  - Installing phpcsstandards/phpcsutils (1.0.7): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-8fb6aeb0d724fe9dec548dc8dc0cc1ef.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/de81436e'
  - Installing phpcompatibility/php-compatibility (dev-develop 70e4ca24): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-190a440eda0088e8571488e7e5b278b9.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/365be4e6'
  - Marking phpcompatibility/php-compatibility (10.x-dev 70e4ca24) as installed, alias of phpcompatibility/php-compatibility (dev-develop 70e4ca24)
  - Installing moodlehq/moodle-cs (v3.3.4): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-e2fedfc3f164ac6b264fd1332892aa55.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/b5ce54f2'
  - Installing moodlehq/moodle-local_ci (1.0.19): Cloning v1.0.19 from cache
Executing command (CWD): git clone --no-checkout '/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-ci.git/' '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci' --dissociate --reference '/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-ci.git/' && cd '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci' && git remote set-url origin -- 'https://github.com/moodlehq/moodle-local_ci.git' && git remote add composer -- 'https://github.com/moodlehq/moodle-local_ci.git'
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci): git remote set-url --push origin -- 'git@github.com:moodlehq/moodle-local_ci.git'
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci): git branch -r
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci): git checkout 'v1.0.19' -- && git reset --hard 'v1.0.19' --
  - Installing moodlehq/moodle-local_moodlecheck (1.1.6): Cloning v1.1.6 from cache
Executing command (CWD): git clone --no-checkout '/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-moodlecheck.git/' '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_moodlecheck' --dissociate --reference '/Users/stronk7/Library/Caches/composer/vcs/https---github.com-moodlehq-moodle-local-moodlecheck.git/' && cd '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_moodlecheck' && git remote set-url origin -- 'https://github.com/moodlehq/moodle-local_moodlecheck.git' && git remote add composer -- 'https://github.com/moodlehq/moodle-local_moodlecheck.git'
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_moodlecheck): git remote set-url --push origin -- 'git@github.com:moodlehq/moodle-local_moodlecheck.git'
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_moodlecheck): git branch -r
Executing command (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_moodlecheck): git checkout 'v1.1.6' -- && git reset --hard 'v1.1.6' --
  - Installing nikic/php-parser (v4.16.0): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-0760780d07075589e0092db2878566eb.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/bfb37119'
  - Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-d95df7c517c61f885f8f2261cf098fcf.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/d2782c58'
  - Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-47eaefdbdf5f6ea9f2c159175b18ff00.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/da29ec3e'
  - Installing php-parallel-lint/php-parallel-lint (v1.3.2): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-8f739dc86f7da4f9d589604b1ffae7fe.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/e94eb6f1'
  - Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-2682aac3b1db491b22027eca5e95bfd6.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/8c877663'
  - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  - Installing symfony/filesystem (v5.4.25): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.2): Extracting archive
  - Installing symfony/polyfill-php81 (v1.27.0): Extracting archive
  - Installing symfony/dependency-injection (v5.4.25): Extracting archive
  - Installing symfony/config (v5.4.21): Extracting archive
  - Installing pdepend/pdepend (2.14.0): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing composer/xdebug-handler (3.0.3): Extracting archive
  - Installing phpmd/phpmd (2.13.0): Extracting archive
  - Installing sebastian/version (3.0.2): Extracting archive
  - Installing sebastian/cli-parser (1.0.1): Extracting archive
  - Installing phpunit/php-timer (5.0.3): Extracting archive
  - Installing phpunit/php-file-iterator (3.0.6): Extracting archive
  - Installing sebastian/phpcpd (6.0.3): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  - Installing symfony/string (v5.4.22): Extracting archive
  - Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
  - Installing symfony/console (v5.4.24): Extracting archive
  - Installing symfony/dotenv (v5.4.22): Extracting archive
  - Installing symfony/finder (v5.4.21): Extracting archive
  - Installing symfony/process (v5.4.24): Extracting archive
  - Installing symfony/yaml (v5.4.23): Extracting archive
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/a4d4d80d'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/71e01822'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/de81436e'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/365be4e6'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/b5ce54f2'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/d2782c58'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/da29ec3e'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/e94eb6f1'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/8c877663'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-a6b79f649615f70103bf55792333ff11.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/0fa3546f'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-a31f57dd30532efecdd4a2f229311542.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/6a8f5da9'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-1b3e39cfc04de88c1be1cb4b810e2521.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/25d1a01b'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-5d477dd6c83e698577493d767c426c76.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/50fbe5c2'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-7e195c3dacb05b9ec7367a403adb4dfa.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/9380d612'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-08c2930474b34050ab4edf0ecac0faaf.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/d2485b80'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-80c6a06cd48f6dca4014b238d40a04a5.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/c447ec45'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-a7c6452056df5f299689a9becfa85838.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/953ca749'
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/tmp-3c742892b993444d9df0dbebe01bae94.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/315ba6d7'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/bfb37119'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/0fa3546f'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/6a8f5da9'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/25d1a01b'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/50fbe5c2'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/9380d612'
Executing async command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/composer/d2485b80'
...
...
(I have removed a lot of lines in the middle of the loop because GitHub was failing with "Comment is too long - max 64Kb" error. The recursion leads to very long paths)
...
...
  - Loading amphp/amp (v2.6.2) from cache
Reading /Users/stronk7/Library/Caches/composer/files/amphp/byte-stream/24823ac0e49e56800f97cb0f4e852334fc3a60e0.zip from cache
  - Loading amphp/byte-stream (v1.8.1) from cache
Reading /Users/stronk7/Library/Caches/composer/files/vimeo/psalm/086c546d5b80d5063a497420844f8a8bfc9940e0.zip from cache
  - Loading vimeo/psalm (5.15.0) from cache
  - Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/tmp-fa95e6cf576890b56f9a4668a0a745a5.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d'
    Failed to extract squizlabs/php_codesniffer: (1) '/usr/bin/unzip' -qq '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/tmp-fa95e6cf576890b56f9a4668a0a745a5.zip' -d '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d'

checkdir warning:  path too long; truncating
                   squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc.fixed
                -> /Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d/squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc.fix
checkdir warning:  path too long; truncating
                   squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc.fixed
                -> /Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d/squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc
replace /Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d/squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.inc? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
(EOF or read error, treating as "[N]one" ...)
checkdir warning:  path too long; truncating
                   squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc.fixed
                -> /Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d/squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.inc.fix

    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
Executing command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d'
Executing command (CWD): rm -rf '/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/squizlabs/php_codesniffer'
    Install of squizlabs/php_codesniffer failed
Downloading https://packagist.org/downloads/
[201] https://packagist.org/downloads/

In ZipDownloader.php line 225:
                                                                               
  [RuntimeException]                                                           
  The archive may contain identical file names with different capitalization   
  (which fails on case insensitive filesystems): ZipArchive::extractTo(): Ful  
  l extraction path exceed MAXPATHLEN (1024)                                   
                                                                               

Exception trace:
  at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:225
 Composer\Downloader\ZipDownloader->extractWithZipArchive() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:170
 Composer\Downloader\ZipDownloader->Composer\Downloader\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:185
 Composer\Downloader\ZipDownloader->Composer\Downloader\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:169
 React\Promise\Promise::React\Promise\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:176
 React\Promise\Promise::React\Promise\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at n/a:n/a
 call_user_func() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Util/ProcessExecutor.php:328
 Composer\Util\ProcessExecutor->countActiveJobs() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Util/Loop.php:90
 Composer\Util\Loop->wait() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:430
 Composer\Installer\InstallationManager->waitOnPromises() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:405
 Composer\Installer\InstallationManager->executeBatch() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:319
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:218
 Composer\Installer\InstallationManager->execute() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer.php:789
 Composer\Installer->doInstall() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer.php:614
 Composer\Installer->doUpdate() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer.php:288
 Composer\Installer->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Command/UpdateCommand.php:247
 Composer\Command\UpdateCommand->execute() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Console/Application.php:382
 Composer\Console\Application->doRun() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Console/Application.php:145
 Composer\Console\Application->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/bin/composer:88
 require() at /Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar:29

In ZipDownloader.php line 212:
                                                                          
  [ErrorException]                                                        
  ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (1024)  
                                                                          

Exception trace:
  at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:212
 Composer\Util\ErrorHandler::handle() at n/a:n/a
 ZipArchive->extractTo() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:212
 Composer\Downloader\ZipDownloader->extractWithZipArchive() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:170
 Composer\Downloader\ZipDownloader->Composer\Downloader\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Downloader/ZipDownloader.php:185
 Composer\Downloader\ZipDownloader->Composer\Downloader\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:169
 React\Promise\Promise::React\Promise\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Internal/FulfilledPromise.php:47
 React\Promise\Internal\FulfilledPromise->then() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:176
 React\Promise\Promise::React\Promise\{closure}() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:217
 React\Promise\Promise->settle() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/react/promise/src/Promise.php:279
 React\Promise\Promise::React\Promise\{closure}() at n/a:n/a
 call_user_func() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Util/ProcessExecutor.php:328
 Composer\Util\ProcessExecutor->countActiveJobs() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Util/Loop.php:90
 Composer\Util\Loop->wait() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:430
 Composer\Installer\InstallationManager->waitOnPromises() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:405
 Composer\Installer\InstallationManager->executeBatch() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:319
 Composer\Installer\InstallationManager->downloadAndExecuteBatch() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer/InstallationManager.php:218
 Composer\Installer\InstallationManager->execute() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer.php:789
 Composer\Installer->doInstall() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer.php:614
 Composer\Installer->doUpdate() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Installer.php:288
 Composer\Installer->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Command/UpdateCommand.php:247
 Composer\Command\UpdateCommand->execute() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Application.php:1040
 Symfony\Component\Console\Application->doRunCommand() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Application.php:301
 Symfony\Component\Console\Application->doRun() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Console/Application.php:382
 Composer\Console\Application->doRun() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/src/Composer/Console/Application.php:145
 Composer\Console\Application->run() at phar:///Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar/bin/composer:88
 require() at /Users/stronk7/git_moodle/moodle-plugin-ci/composer.phar:29

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-update-cmd
Script @composer update --prefer-dist --optimize-autoloader --working-dir=vendor/moodlehq/moodle-local_ci handling the local-ci-install event returned with error code 1
Script @local-ci-install was called via post-install-cmd

And I expected this to happen:

  • I expect it to finish ok, without that near-never-ending-loop/recursion. As it was with composer 2.5.8. I hope it's not something our side, still investigating... but for sure the behaviour has changed with 2.6.x
  • Note that composer install works ok, it's only create-project and 2.6.x series.
  • You can see one of the repos that are using that tool, forcing different composer versions and how the problems have started with 2.6.0 (and continues with 2.6.1): https://github.com/stronk7/moodle-local_codechecker/actions
  • If needed I can send full logs some other way, but GH limits forced me to remove some good lines in the middle.

Ciao :-)

Edited: I've attached the full logs (5MB) before it crashes: full-create-project-log.txt

@stof
Copy link
Contributor

stof commented Sep 1, 2023

Looking at the path being truncated (/Users/stronk7/git_moodle/moodle-plugin-ci/ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci/vendor/composer/70c3509d/squizlabs-PHP_CodeSniffer-ed8e00d/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc.fix), it looks like you have lots of repeated vendor/moodlehq/moodle-local_ci/vendor/moodlehq/moodle-local_ci. It looks like moodlehq/moodle-local_ci gets installed in a vendor folder of the moodlehq/moodle-local_ci package (and recursively)

I suspect an issue with your local-ci-install script running a composer update in post-*-cmd scripts. However, this looks weird. It is like it would keep using the composer.json of the installed project instead of taking it in --working-directory (and so running such script again for the inner script and so on).
@Seldaek could it be caused by #11493 ?

@stof
Copy link
Contributor

stof commented Sep 1, 2023

Anyway, I find it weird to run composer update inside one of your vendors. That should not be necessary as composer installs the dependencies of packages (except of course that right now, you use a repository of type package and you provide package metadata with no dependencies, which does not match the composer.json in the github repo)

@stronk7
Copy link
Author

stronk7 commented Sep 1, 2023

Thanks @stof ,

Yeah, we are looking to those post-x instructions here. But thought it was worth reporting because it (the recursion) only happens with create-project and since 2.6.0.

@Seldaek
Copy link
Member

Seldaek commented Sep 1, 2023

@stof i imagine it must be due to that issue you referenced but not sure why.. Will have to try and repro it

@stof
Copy link
Contributor

stof commented Sep 1, 2023

@Seldaek my guess is that when running @composer update --working-dir vendor/moodlehq/moodle-local_ci in the post-create-project-cmd script, the COMPOSER env variable added in that PR makes @composer use the composer.json of the root project and not of the new working directory.

@Seldaek
Copy link
Member

Seldaek commented Sep 1, 2023

Yeah that makes a lot of sense

@Seldaek
Copy link
Member

Seldaek commented Sep 3, 2023

@stronk7 I see you've worked around it which is great but can you please check that the old code works again with my fix using composer self-update --snapshot when you have a second?

@Seldaek Seldaek added this to the 2.6 milestone Sep 3, 2023
@stronk7
Copy link
Author

stronk7 commented Sep 3, 2023

Sure, I'll try here soon (along the day) with our previous tool that still was using the @composer update in post-x...

@stronk7
Copy link
Author

stronk7 commented Sep 3, 2023

Good news, it seems that the snapshot is behaving ok:

# Just before this I confirmed that our tool 4.1.1 version was exposed to the issue: It was. And then:

$ php composer.phar self-update --snapshot
Upgrading to version 98a588eb908f6abb08949cb2cb23693d9a2b8da7 (snapshot channel).
   
Use composer self-update --rollback to return to version 2.6.1

$ php composer.phar create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci 4.1.1 && echo "Yay!"
Creating a "moodlehq/moodle-plugin-ci" project at "./ci"
Info from https://repo.packagist.org: #StandWithUkraine
Installing moodlehq/moodle-plugin-ci (4.1.1)
  - Installing moodlehq/moodle-plugin-ci (4.1.1): Extracting archive
Created project in /Users/stronk7/git_moodle/moodle-plugin-ci/ci
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 41 installs, 0 updates, 0 removals
  - Syncing moodlehq/moodle-local_ci (1.0.19) into cache
  - Syncing moodlehq/moodle-local_moodlecheck (1.1.6) into cache
  - Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v1.0.0): Extracting archive
  - Installing composer/pcre (3.1.0): Extracting archive
  - Installing marcj/topsort (2.0.0): Extracting archive
  - Installing phpcsstandards/phpcsutils (1.0.7): Extracting archive
  - Installing phpcompatibility/php-compatibility (dev-develop 70e4ca24): Extracting archive
  - Installing moodlehq/moodle-cs (v3.3.4): Extracting archive
  - Installing moodlehq/moodle-local_ci (1.0.19): Cloning v1.0.19 from cache
  - Installing moodlehq/moodle-local_moodlecheck (1.1.6): Cloning v1.1.6 from cache
  - Installing nikic/php-parser (v4.16.0): Extracting archive
  - Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
  - Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
  - Installing php-parallel-lint/php-parallel-lint (v1.3.2): Extracting archive
  - Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  - Installing symfony/filesystem (v5.4.25): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.2): Extracting archive
  - Installing symfony/polyfill-php81 (v1.27.0): Extracting archive
  - Installing symfony/dependency-injection (v5.4.25): Extracting archive
  - Installing symfony/config (v5.4.21): Extracting archive
  - Installing pdepend/pdepend (2.14.0): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing composer/xdebug-handler (3.0.3): Extracting archive
  - Installing phpmd/phpmd (2.13.0): Extracting archive
  - Installing sebastian/version (3.0.2): Extracting archive
  - Installing sebastian/cli-parser (1.0.1): Extracting archive
  - Installing phpunit/php-timer (5.0.3): Extracting archive
  - Installing phpunit/php-file-iterator (3.0.6): Extracting archive
  - Installing sebastian/phpcpd (6.0.3): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  - Installing symfony/string (v5.4.22): Extracting archive
  - Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
  - Installing symfony/console (v5.4.24): Extracting archive
  - Installing symfony/dotenv (v5.4.22): Extracting archive
  - Installing symfony/finder (v5.4.21): Extracting archive
  - Installing symfony/process (v5.4.24): Extracting archive
  - Installing symfony/yaml (v5.4.23): Extracting archive
Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
28 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PHP CodeSniffer Config installed_paths set to ../../moodlehq/moodle-cs,../../phpcompatibility/php-compatibility,../../phpcsstandards/phpcsutils
Loading composer repositories with package information
Updating dependencies
Lock file operations: 6 installs, 0 updates, 0 removals
  - Locking dealerdirect/phpcodesniffer-composer-installer (v1.0.0)
  - Locking moodlehq/moodle-cs (v3.3.5)
  - Locking mustache/mustache (v2.14.2)
  - Locking phpcompatibility/php-compatibility (dev-develop 70e4ca24)
  - Locking phpcsstandards/phpcsutils (1.0.8)
  - Locking squizlabs/php_codesniffer (3.7.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [->--------------------------]
  - Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
  - Installing dealerdirect/phpcodesniffer-composer-installer (v1.0.0): Extracting archive
  - Installing phpcsstandards/phpcsutils (1.0.8): Extracting archive
  - Installing phpcompatibility/php-compatibility (dev-develop 70e4ca24): Extracting archive
  - Installing moodlehq/moodle-cs (v3.3.5): Extracting archive
  - Installing mustache/mustache (v2.14.2): Extracting archive
 0/4 [>---------------------------]   0%
 4/4 [============================] 100%
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
Class MoodleHQ\MoodleCS\moodle\Tests\MoodleCsStandardTest located in ./vendor/moodlehq/moodle-cs/moodle/Tests/MoodleStandardTest.php does not comply with psr-4 autoloading standard. Skipping.
PHP CodeSniffer Config installed_paths set to ../../moodlehq/moodle-cs,../../phpcompatibility/php-compatibility,../../phpcsstandards/phpcsutils
No security vulnerability advisories found
> cd vendor/moodlehq/moodle-local_ci && npm install --no-progress

added 1 package, and audited 2 packages in 641ms

found 0 vulnerabilities
No security vulnerability advisories found
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
Class MoodleHQ\MoodleCS\moodle\Tests\MoodleCsStandardTest located in ./vendor/moodlehq/moodle-cs/moodle/Tests/MoodleStandardTest.php does not comply with psr-4 autoloading standard. Skipping.
No security vulnerability advisories found
> cd vendor/moodlehq/moodle-local_ci && npm install --no-progress

up to date, audited 2 packages in 478ms

found 0 vulnerabilities
Yay!

Ciao :-)

@Seldaek
Copy link
Member

Seldaek commented Sep 3, 2023

Great thanks for confirming, I'll release 2.6.2 in a minute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants