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

"Could not determine the Composer version" #1445

Open
ArnaudLigny opened this issue Feb 6, 2025 · 0 comments
Open

"Could not determine the Composer version" #1445

ArnaudLigny opened this issue Feb 6, 2025 · 0 comments

Comments

@ArnaudLigny
Copy link

ArnaudLigny commented Feb 6, 2025

Bug report

Question Answer
Box version 4.5.1
PHP version 8.3
Platform with version Windows
Github Repo https://github.com/Cecilapp/Cecil/

Hello, since ~ 3 months my build process is broken on Windows (only) with the following error message:

? Checking Composer compatibility

In UndetectableComposerVersion.php line 54:
                                                                       
  Could not determine the Composer version from the following output:  
                                                                       

compile [--debug] [--no-parallel] [--no-restart] [--dev] [--no-config] [--with-docker] [--composer-bin COMPOSER-BIN] [--allow-composer-check-failure] [-c|--config CONFIG] [-d|--working-dir WORKING-DIR]

Note: it's seems it's the same problem of the closed issue #1004.

box.json
{
  "alias": "cecil.phar",
  "output": "dist/cecil.phar",
  "git-version": "git_version",
  "compression": "GZ",
  "directories": [
    "config",
    "src",
    "resources"
  ],
  "finder": [
    {
      "in": [
        "."
      ],
      "name": [
        "*.php",
        "*.twig",
        "*.yaml",
        "*.yml",
        "*.json",
        "*.txt",
        "*.xml",
        "*.xsd",
        "*.mo",
        "*.po",
        "LICENSE*",
        "License*",
        "VERSION"
      ],
      "notName": [
        "composer.json",
        "box.json"
      ],
      "exclude": [
        "phpunit",
        "Tests",
        "tests",
        "php-scoper",
        "box",
        "phpmd",
        "phpstan",
        "php_codesniffer",
        "php-cs-fixer",
        "composer-normalize"
      ]
    }
  ],
  "compactors": [
    "KevinGH\\Box\\Compactor\\Json",
    "KevinGH\\Box\\Compactor\\Php"
  ]
}

https://github.com/Cecilapp/Cecil/blob/6672c8ebcd0966b5ba13a159d91cbc429cf6dfa3/box.json

Output
> box compile && cd dist && php cecil.phar --version && mkdir demo && php cecil.phar new:site demo --demo -f -n && php cecil.phar new:page demo -f -n && php cecil.phar build demo -v && php cecil.phar show:content demo && rm -rf demo

    ____
   / __ )____  _  __
  / __  / __ \| |/_/
 / /_/ / /_/ />  <
/_____/\____/_/|_|


Box version 4.5.1@1e10a1e

 // Loading the configuration file "D:\a\Cecil\Cecil\box.json".                                                        

🔨  Building the PHAR "D:/a/Cecil/Cecil/dist/cecil.phar"

? Checking Composer compatibility

In UndetectableComposerVersion.php line 54:
                                                                       
  Could not determine the Composer version from the following output:  
                                                                       

compile [--debug] [--no-parallel] [--no-restart] [--dev] [--no-config] [--with-docker] [--composer-bin COMPOSER-BIN] [--allow-composer-check-failure] [-c|--config CONFIG] [-d|--working-dir WORKING-DIR]

Script box compile && cd dist && php cecil.phar --version && mkdir demo && php cecil.phar new:site demo --demo -f -n && php cecil.phar new:page demo -f -n && php cecil.phar build demo -v && php cecil.phar show:content demo && rm -rf demo handling the test:phar event returned with error code 1
Error: Process completed with exit code 1.

https://github.com/Cecilapp/Cecil/actions/runs/13161948734/job/36732649063

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

1 participant