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

bug: unable to determine the branch associated with the rev git depends on #369

Open
jetjinser opened this issue Apr 26, 2024 · 0 comments

Comments

@jetjinser
Copy link

If rev is not in the HEAD positioned branch, builtins.fetchGit cannot find it.

To reproduce

minimal case: https://github.com/jetjinser/madsim-br

the point is:

[dependencies]
tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "fe39bb8e" }

the madsim-rs/tokio@fe39bb8e in branch madsim.

nix build

gets error like:

error: Cannot find Git revision 'fe39bb8e8ab0ed96ee1b4477ab5508c20ce017fb' in ref 'HEAD' of repository 'https://github.com/madsim-rs/tokio.git'! Please make sure that the rev exists on the ref you've specified or add allRefs = true; to fetchGit.
@jetjinser jetjinser changed the title bug: unable to determine which branch's rev that git depends on bug: unable to determine the branch associated with the rev git depends on Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant