-
-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Git not found when trying to upgrade pubs #94663
Comments
You can add git to
(Depending on the context, you might need
Looks like the second failure,
As for the first failure, If you just want to get it built and aren't too worried about the git tests, you can simply remove the offending test file by adding something like this to your overrideAttrs:
This will delete the |
If you do remove the git tests as I described, there's probably no longer any need to add |
Thanks for your help. I'm going to take the path of disabling git tests as you described. I would have liked to update the nixpkgs repo with the new version, but this workaround is probably insufficient to make it into the repo, isn't it? I tried diving in the build process with nix-shell to debug but I can only trigger the unpackPhase, I can't figure out how the rest of the build is done. The subsequent phases (configurePhase, buildPhase, …) don't get me anywhere, I guess there is something special about the I'm going to raise this issue to the pubs repo in case the developer can do anything about it. |
Removing failing tests when packaging things in nixpkgs is generally ok[1], as long as we have good reason to think that the tests are invalid (i.e. that they are failing because they are making incorrect assumptions, rather than because the package we're building is broken.). Just add a comment to the package next to your fix with a link to your upstream issue, so others know why you did it and when it is no longer required. [1] Some packages in nixpkgs just skip their entire test suite with |
Ok, I made the PR. |
Fixed by #95899. |
(I'm not sure this is the appropriate for this report. Sorry for the inconvenience if not and please let me know.)
Describe the bug
Trying to update the package pubs to the latest version (0.8.3), the build fails when running the tests because the command
git
cannot be found. I'm new to nix and I'm not sure if this can be fixed on the nix side or not.To Reproduce
Steps to reproduce the behavior:
(I removed the patches because I believe they were applied upstream.)
Install with
nix-env -f default.nix -iA pubs083
The following error appears during the test phase:
Notify maintainers
@gebner
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: