phive icon indicating copy to clipboard operation
phive copied to clipboard

Add support to specify a stablity (stable, alpha, beta, ...)

Open theseer opened this issue 7 years ago • 18 comments
trafficstars

Upgrading from a stable 1.0.0 to 2.0.0-alpha.1 may or may not be desired. We should make sure that a user can request a certain stability level when installing or upgrading.

theseer avatar Jun 26 '18 14:06 theseer

I think the problem which this issue is about is currently happening "live": our pipelines started breaking last week because phive is used to install php-cs-fixer, which has released version v3.0.0-beta.1, which fails for us with PHP Fatal error: Uncaught Error: Call to undefined method PhpCsFixer\Config::create()

gggeek avatar Mar 26 '21 12:03 gggeek

While I understand that to be a problem in general, I'm not sure I understand why this problem occured for your CI pipeline: Usually, on CI, "phive install" is used to re-create a predefined set of tools and their respective versions as recorded in either phive.xml or .phive/phars.xml.

So unless php-cs-fixer in 3.0.0-beta.1 works for you locally, I don't see how it would end up being installed on CI?

theseer avatar Mar 26 '21 21:03 theseer

I don't see how it would end up being installed on CI?

Don't even ask :-D It's something that I am pushing to fix, but atm the CI QA containers are built differently than the ones used by developers, and they are not even available during development so that we could troubleshoot them locally :-O.

gggeek avatar Mar 27 '21 09:03 gggeek

Do you need help fixing it? I suggest replacing phar-io/version with surely working correctly composer/semver.

gander avatar Dec 14 '21 14:12 gander

No.

This is not a problem of parsing sem ver.

theseer avatar Dec 14 '21 14:12 theseer

Then what? Write what the matter is, maybe someone will send you a PR with a solution. This zero activity in this code repository does not indicate that the problem is going to be resolved anytime soon.

gander avatar Dec 14 '21 14:12 gander

The title as well as the description already contain everything: Phive lacks a means to SPECIFY a stability when installing.

theseer avatar Dec 14 '21 14:12 theseer

If I understand correctly, cannot specify stability when invoking the install command?

gander avatar Dec 14 '21 14:12 gander

Correct.

theseer avatar Dec 14 '21 14:12 theseer

Can't you just force the installation of only stable versions? As long as the current issue is unresolved?

gander avatar Dec 14 '21 14:12 gander

This issue is about an enhancement. It's not a real technical issue stopping anyone from using phive. I thus do not see a need for a hack like that.

theseer avatar Dec 14 '21 14:12 theseer

And this is not a very complex issue. We just need to implement it but there are more important things to be done first. Feel free to have a look at it.

theseer avatar Dec 14 '21 14:12 theseer

This issue is about an enhancement. It's not a real technical issue stopping anyone from using phive. I thus do not see a need for a hack like that.

I came here because I wanted to report a bug. However, I found #333 before that. Issue was closed as it was supposed to be a copy of #154. Now you write that this is a thread for an improvement, and there are no complications in the operation of the application. There is a complication because I have to quite accurately determine what version of composer I want to install, otherwise the RC version is installed. This is a bug.

gander avatar Dec 14 '21 15:12 gander

phive install [email protected].*

theseer avatar Dec 14 '21 15:12 theseer

Suppose I have 10 applications that I want to install and every time I install them I have to go to the repository for each one and make sure what the latest version is, which is not alpha, beta, rc. So why do I need a tool like Phive when I have to check everything myself?

gander avatar Dec 14 '21 15:12 gander

Phive helps you to manage dependcies. It doesn't free you from thinking of what you're doing.

Even if phive had the missing feature, you still would need to know when to update what and what side effects that may have.

I'm not arguing against implementing this, just that it's not a show stopper.

theseer avatar Dec 14 '21 15:12 theseer