-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to fix getVersion() to fetch the version alias, when using "de…
…v-master as <version>" made PACKAGE_NAME a const
- Loading branch information
Showing
1 changed file
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74d7516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this commit is breaking something.
74d7516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for reporting the issue.
Invalid version string "^2.1" . Hmm. My first guess is, that the problem might be the range operator
^
.I have to reproduce the problem first.
Which version of the installer do you require in
composer.json
?This one?
74d7516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jakoch Yes .. simply running
composer require jakoch/phantomjs-installer
will use "^2.1" and rises the errorVersion requirement "^2.1" will select the last stable version "2.1.1-p01" .. manually requiring this version gives no error
So .. yes the problem seems to be the "^2.1" string .. have tried and "2.*" gives error too
74d7516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the quick response and your feedback on this issue.
It's now a verified bug and ticket #29
Running
composer require jakoch/phantomjs-installer
uses^2.1
and resolves to2.1.1
for me..Ok - this is also my suggested workaround then 🌻
74d7516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be due to some composer settings related to minimum stability I missed ?
74d7516
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"minimum-stability": "dev"
wouldn't change it."Invalid version string "^2.1"
thing. Running the CLI command standalone doesn't give me that error.^2.1
resolves to2.1.1
and not2.1.1-p01
-p01
part that Composer doesn't like. I need to look their version syntax up.I currently checking the version with https://semver.mwl.be/#?package=jakoch%2Fphantomjs-installer&version=%5E2.1&minimum-stability=stable