-
Notifications
You must be signed in to change notification settings - Fork 88
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
No rev specified #109
Comments
So this seems to happen for git dependencies in Dependency from Cargo.toml: I can confirm that adding |
Sorry for the delay, slowly catching up on notifications after some time out. Ah, yes, |
Realizing I might have done a bit too much redacting :P No rev specified in
|
Ok, had a proper look at this! First of all, I didn't realize it was actually naersk throwing the error: https://github.com/nmattia/naersk/blob/648f8c9ccec2a5e56c701895d6ce952b71f0e884/lib.nix#L91-L92 So if the Cargo.toml does not have a rev (or branch or tag) then it throws the error. It looks like a few lines after that we parse the Cargo.lock for a rev (if there is no revision set in the Cargo.toml). So basically, we could first try to parse the Cargo.lock for a rev, and, if one is found, then we simply don't throw the error. It's a matter of moving a few lines up. Is that something that you think would be useful for you? |
I do think that such a change, in allowing us to rely on the Not sure if not providing a |
I'm getting an error which I don't understand. As far as I can tell, I have specified revisions for all of the dependencies, but it errors with
No 'rev', 'tag' or 'branch' specified
.The text was updated successfully, but these errors were encountered: