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

Version constraint ^3.0.0-alpha1 is not supported. #145

Closed
sebastianbergmann opened this issue Jun 4, 2018 · 4 comments
Closed

Version constraint ^3.0.0-alpha1 is not supported. #145

sebastianbergmann opened this issue Jun 4, 2018 · 4 comments
Assignees
Labels

Comments

@sebastianbergmann
Copy link
Member

$ phive install phing
Phive 0.10.0 - Copyright (C) 2015-2018 by Arne Blankerts, Sebastian Heuer and Contributors
Linking /home/sb/.phive/phars/phing-3.0.0-alpha1.phar to /home/sb/example/tools/phing
$ cat phive.xml
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
  <phar name="phing" version="^3.0.0-alpha1" installed="3.0.0-alpha1" location="./tools/phing"/>
</phive>
$ phive update
Phive 0.10.0 - Copyright (C) 2015-2018 by Arne Blankerts, Sebastian Heuer and Contributors
[ERROR]    An error occurred while processing your request:

          Version constraint ^3.0.0-alpha1 is not supported.
          
          #0 har:///usr/local/bin/phive/vendor/phar-io/version/src/VersionConstraintParser.php(28)
          #1 har:///usr/local/bin/phive/src/shared/config/PhiveXmlConfig.php(239): PharIo\Version\VersionConstraintParser->parse()
          #2 har:///usr/local/bin/phive/src/shared/config/PhiveXmlConfig.php(188): PharIo\Phive\PhiveXmlConfig->nodeToConfiguredPhar()
          #3 har:///usr/local/bin/phive/src/commands/update/UpdateCommandConfig.php(68): PharIo\Phive\PhiveXmlConfig->getPhars()
          #4 har:///usr/local/bin/phive/src/commands/update/UpdateCommandConfig.php(44): PharIo\Phive\UpdateCommandConfig->getPharAliasesFromPhiveXmlConfig()
          #5 har:///usr/local/bin/phive/src/commands/update/UpdateCommand.php(45): PharIo\Phive\UpdateCommandConfig->getRequestedPhars()
          #6 har:///usr/local/bin/phive/src/shared/cli/Runner.php(211): PharIo\Phive\UpdateCommand->execute()
          #7 har:///usr/local/bin/phive/src/shared/cli/Runner.php(70): PharIo\Phive\Cli\Runner->execute()
          #8 usr/local/bin/phive(300): PharIo\Phive\Cli\Runner->run()
          #9 {main}

          Environment: PHP 7.2.6
          Phive Version: 0.10.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!
@filips123
Copy link

Installation also doesn't work for versions like 3.0.0-beta.4 (with a dot between beta and 4).

@sebastianheuer
Copy link
Member

This has been fixed in phar-io/version 2.0.0. The next release of Phive will use this version.

While comparing alpha and beta versions will work as expected, it may not be desirable to install pre-release versions of tools unless explicitly requested. This has not been addressed yet.

@filips123
Copy link

When will be next release published?

@theseer
Copy link
Member

theseer commented Jun 26, 2018

Closing this.

Support for a given stability level will be tracked in it's own ticket: #154

@theseer theseer closed this as completed Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants