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

Add support for submodules and release artifacts #46

Merged
merged 10 commits into from
Jul 12, 2024

Conversation

piegamesde
Copy link
Collaborator

@piegamesde piegamesde commented Jul 31, 2023

@LunNova please give it a try, I did not manage to write tests for all of the bits

Closes #45

Also contains some refactorings and an implementation of #85

@LunNova
Copy link

LunNova commented Aug 14, 2023

I missed this, I'll give it a try some time this week.

@LunNova
Copy link

LunNova commented Nov 1, 2023

Tested it out in fufexan/nix-gaming@0bdbef6 this morning and it seems to work!

this week

It's been a very long week 😅

@fufexan
Copy link

fufexan commented Feb 23, 2024

@piegamesde is there any work left to do on this PR? I am willing to contribute to get this merged sooner.

@piegamesde
Copy link
Collaborator Author

@fufexan Work is done IIRC, but CI fails for some reason and I cannot reproduce it on my machine. Help appreciated.

@phanirithvij

This comment was marked as duplicate.

test.nix Outdated Show resolved Hide resolved
test.nix Outdated Show resolved Hide resolved
@piegamesde
Copy link
Collaborator Author

After a year of struggling with flaky CI and thanks to Andi's help, this is now finally ready!

piegamesde and others added 7 commits June 25, 2024 16:17
This will be required for testing submodules.

Also added a couple more hash assertions to some tests.
This ensures that our assumption of GitHub serving all releases as
tarballs is always upheld in our tests. We could instead manually
specify commit hashes but that is cumbersome.
This adds an `eq` function and a `resolveGitCommit` function. Both
come in handy when dealing with tests.
This gives us a better error messages when dealing with failed tests.
Also changed the hardcoded commit ids to be resolve during runtime.
These shouldn't bitrot.
If we don't do this we can't use the git cli on folders in the Nix
store. It'll always barf at us.
npins/default.nix Outdated Show resolved Hide resolved
npins/default.nix Outdated Show resolved Hide resolved
@piegamesde piegamesde merged commit b5cd193 into andir:master Jul 12, 2024
1 check passed
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.

Support fetchSubmodules for git/github
5 participants