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

resolve fetchgit issue with nix 2.4 #115

Closed
wants to merge 1 commit into from

Conversation

tshaynik
Copy link
Contributor

@tshaynik tshaynik commented Oct 6, 2021

Adds allRefs = true; to the invocation of fetchGit
as opposed to repassing the commit hash as the ref, which
fails with nix version >=2.4
Fixes #91

Adds `allRefs = true;` to the invocation of fetchGit
as opposed to repassing the commit hash as the ref, which
fails with nix version >=2.4
Fixes nix-community#91
@cideM
Copy link

cideM commented Oct 11, 2021

I was just bit by this as well while trying to contribute to the repository and update some tests. The commit fixes the issue for me and it would be cool to merge this sooner rather than later ⭐

@andir
Copy link
Collaborator

andir commented Nov 13, 2021

Thanks for the PR. I'm finally able to look at this.

@@ -67,7 +67,8 @@ rec {
} else
builtins.fetchGit {
url = "https://github.com/${org}/${repo}";
inherit rev ref;
inherit rev;
allRefs = true;
Copy link
Collaborator

@andir andir Nov 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is all it takes this sounds good. Just have to make sure it doesn't break on older versions of nix (2.3)

@andir
Copy link
Collaborator

andir commented Nov 15, 2021

Thank you for the PR. I've integrated your work in #124 which added more backwards compat and not just Nix 2.4 support.

@andir andir closed this Nov 15, 2021
@tshaynik
Copy link
Contributor Author

Amazing. Thanks for all your work!

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

Successfully merging this pull request may close these issues.

Github dependencies fail with nix 2.4
3 participants