-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Possible to reference branch#tag in github? #6206
Comments
This is the best I could come up with it. This installs a development version though, not a stable version. But with so many people thinking they can come up with a better version scheme than semver, it is impossible for us to support all formats. We simply cannot/will not. Reach out to the author, see if you can talk some sense into him :-)
|
Given how W3 Total Cache is a colossal project used by thousands of websites, and its versioning is already in place, I doubt they'll listen to us. So v0.9.5.x-dev#878fe362069cc0d0215bf2760bcb195575012a90 seems to be the only way to refer to the tag, by its hash then. Cool, thanks. |
Please keep https://getcomposer.org/doc/articles/troubleshooting.md#i-have-locked-a-dependency-to-a-specific-commit-but-get-unexpected-results- in mind when using commit references. |
Should I remove the branch name and just leave the commit hash in? Will that even work? |
That will not work. As stated in that link, the downside cannot be avoided. Using a commit hash is a hack that has been around for legacy reasons, but we strongly discourage using it. |
Hi,
Is it possible to refer to a tag using composer? Specifically, a tag that looks like a version but doesn't adhere to semver? This guy: https://github.com/szepeviktor/w3-total-cache-fixed/releases/tag/0.9.5.2.3.
My
composer.json
:The above ends up checking out HEAD of that branch, not the tag. I wasn't able to figure out a way to check out just tag "0.9.5.2.3".
The only way I got it to work is by using a hash
v0.9.5.x-dev#878fe362069cc0d0215bf2760bcb195575012a90
, but it's not as readable, especially since Composer refuses to support comments in composer.json.So, my question is, is it possible to refer to https://github.com/szepeviktor/w3-total-cache-fixed/releases/tag/0.9.5.2.3 by tag name?
Thank you.
The text was updated successfully, but these errors were encountered: