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

Requiring a specific git hash fails #129

Closed
bluenote10 opened this issue May 27, 2015 · 4 comments
Closed

Requiring a specific git hash fails #129

bluenote10 opened this issue May 27, 2015 · 4 comments

Comments

@bluenote10
Copy link
Contributor

A statement like this

Requires: "nim >= 0.10.3, nim-stringinterpolation#e0746e3"

fails, because the hash will be interpreted as the branch variable at this point (running git fetch origin --depth 1 e0746e3e manually produces fatal: Couldn't find remote ref e0746e3e). On the other hand:

Requires: "nim >= 0.10.3, nim-stringinterpolation#master"

also fails, probably in the checkout command.

Probably the syntax for Requires should allow to provide both the branch and the hash.

@dom96
Copy link
Collaborator

dom96 commented Dec 26, 2015

I don't think Nimble needs to distinguish between commit hashes and branch names.

@bluenote10
Copy link
Contributor Author

Yes, you are right. The hash determines the branch, so it is definitely better not having to specify them both.

dom96 added a commit to nim-lang/Nim that referenced this issue Sep 25, 2016
@dom96 dom96 closed this as completed in 0564cb2 Oct 8, 2016
@timotheecour
Copy link
Member

timotheecour commented Mar 30, 2018

minor nit: can't it lead to ambiguities in the rare case a hash (short form) matches a branch name?

@dom96
Copy link
Collaborator

dom96 commented Mar 30, 2018

@timotheecour if it's good enough for Git...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants