Skip to content

Version '4.0.0beta1' is not supported #447

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

Open
jrfnl opened this issue May 11, 2025 · 0 comments
Open

Version '4.0.0beta1' is not supported #447

jrfnl opened this issue May 11, 2025 · 0 comments

Comments

@jrfnl
Copy link
Contributor

jrfnl commented May 11, 2025

I get the impression a - is expected between the 4.0.0 and beta1, but that's not required for the PHP version_compare() function

Phive 0.16.0 - Copyright (C) 2015-2025 by Arne Blankerts, Sebastian Heuer and Contributors
Fetching repository list
Downloading repositories.xml [https://phar.io/data/repositories.xml]

 ╰|========================================>| 138 B / 138 B - 100%
Downloading phive.xml [https://phars.phpcodesniffer.com/phars/phive.xml]

 ╰|========================================>| 22.15 KB / 22.15 KB - 100%
Error: [ERROR]   An error occurred while processing your request:

          Version string '4.0.0beta1' does not follow SemVer semantics
          
          #0 vendor/phar-io/version/src/Version.php(201)
          #1 vendor/phar-io/version/src/Version.php(32): PharIo\Version\Version->ensureVersionStringIsValid()
          #2 src/shared/repository/PharIoRepository.php(34): PharIo\Version\Version->__construct()
          #3 src/commands/install/InstallCommand.php(68): PharIo\Phive\PharIoRepository->getReleasesByRequestedPhar()
          #4 src/commands/install/InstallCommand.php(56): PharIo\Phive\InstallCommand->resolveToRelease()
          #5 src/commands/install/InstallCommand.php(51): PharIo\Phive\InstallCommand->installRequestedPhar()
          #6 src/shared/cli/Runner.php(241): PharIo\Phive\InstallCommand->execute()
          #7 src/shared/cli/Runner.php([9](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/runs/14952435282/job/42003688786#step:7:10)5): PharIo\Phive\Cli\Runner->execute()
          #8 (355): PharIo\Phive\Cli\Runner->run()
          #9 {main}

          Environment: PHP 8.4.7 (on Linux 6.11.0-[10](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/runs/14952435282/job/42003688786#step:7:11)13-azure)
          Phive Version: 0.16.0

          This should not have happened and is most likely a bug.
          Please report it at https://github.com/phar-io/phive/issues, make sure you include
          the full output of this error message. Thank you!

The error can be seen in the release verification job for PHP_CodeSniffer: https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/runs/14952449073/attempts/1

I suppose I can rename the related files to have a - specifically for PHIVE, but figured I'd report this as, as far as I can see, there is no reason this shouldn't be supported.

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