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

Fix fetchGit with submodules #351

Closed

Conversation

awidegreen
Copy link

The attrset update operator (//) is required to be put in parentheses
otherwise the rhs isn't considered by fetchGit.

The attrset update operator (`//`) is required to be put in parentheses
otherwise the rhs isn't considered by fetchGit.
Copy link
Owner

@nmattia nmattia left a comment

Choose a reason for hiding this comment

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

Yes that makes sense, thanks!

@tfc
Copy link
Contributor

tfc commented Apr 13, 2022

I just stumbled upon this PR and find it very useful. Does anything block it from being merged?

@tfc
Copy link
Contributor

tfc commented Apr 14, 2022

Although this works nicely, i have some thought about it: If you have a niv source with submodules = true and build it on an older nix, you will most likey run into a failing derivation because the build system does not find the things that it assumes to be located in the submodules. Users might be totally riddled why the build fails.

Asserting that nix is newer or equal to 2.4 in case submodules == true would then help users not running into the same situation.

@tfc
Copy link
Contributor

tfc commented May 16, 2022

This can be closed as the other MR fixed it, right?

@nmattia
Copy link
Owner

nmattia commented May 19, 2022

I think so. @awidegreen I'll let you re-open if we missed something!

@nmattia nmattia closed this May 19, 2022
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.

None yet

3 participants