Closed kenranunderscore closed 11 months ago
Nevermind, it seems to have been the tools.build
version begin slightly incompatible now after all! I was on v0.8.*
, and upgrading to v0.9.5
fixed the issue.
@kenranunderscore probably the issue is related to tools.gitlibs
, in some cases invokes git to do some checks, but it'll fail since we don't have network access at build time.
Did it work with a previous clj-nix
version? If your project is open source, I'd like to take a look, to be sure I didn't introduce a bug in clj-nix
.
"It" worked with a previous version of clj-nix
, but rolling back to that version didn't fix the problem, leading me to believe that it's something else in nixpkgs
that triggered the problem. It's a work project and thus closed-source though, so I cannot share anything. I hope the ticket existing might help someone else, should they stumble over this.
Btw now that I've upgraded tools.build
, I could remove git
from the buildInputs
again and it still works.
@kenranunderscore thanks, let me know if you find any other issue.
BTW, in general, you don't want git
in buildInputs
. If tools.build
invokes it, it's to do some checks against the upstream repository, and it will fail since there is no network access at Nix build time.
Hi, we've recently upgraded our
nixpkgs
pin and alsoclj-nix
to its latest commit. Let's take amkCljBin
call that looks somewhat like this:This led to this:
So I added
buildInputs = [ pkgs.gitMinimal ];
to the expression above. Now I get the following error which I really don't understand:Do you have any idea what could be going wrong? I tried going back to the previous
clj-nix
commit that worked for us, but still get the same behavior, leading me to think thatclj-nix
is not the culprit, but I have no idea what else is. Thetools.build
version maybe?