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

I think fetchgit is broken #11496

Closed
copumpkin opened this issue Dec 6, 2015 · 5 comments
Closed

I think fetchgit is broken #11496

copumpkin opened this issue Dec 6, 2015 · 5 comments
Assignees

Comments

@copumpkin
Copy link
Member

Commit 2cf7069 seems to have broken my calls to fetchgit:

Bash complains that it cannot execute the binary file. I noticed this when building gitAndTools.hub against nixpkgs 84b3af1. Removing @peti's change makes it work again.

@peti
Copy link
Member

peti commented Dec 6, 2015

How do you call fetchgit and what error message do you get?

@peti
Copy link
Member

peti commented Dec 6, 2015

gitAndTools.hub compiles fine for me in the current unstable channel at b1dca6c.

@hrdinka
Copy link
Contributor

hrdinka commented Dec 6, 2015

It is broken for me as well. I am building NixOS on top of the current master. For me it fails for gnulib with:
/nix/store/33k6qnz10brkf66lr6yav6bcl4bhy5z0-bash-4.3-p42/bin/bash: /nix/store/33k6qnz10brkf66lr6yav6bcl4bhy5z0-bash-4.3-p42/bin/bash: cannot execute binary file

I guess that it uses /nix/*/bash /nix/*/bash as shell for calling nix-prefetch-git. I think this happens because as soon as you make the value of fetcher a string it will be executed with bash. The command does call bash itself so bash tries to call bash.

@peti
Copy link
Member

peti commented Dec 6, 2015

Please try version b89514e and let me know if that patch didn't do the trick.

@peti peti closed this as completed in b89514e Dec 6, 2015
@peti peti self-assigned this Dec 6, 2015
@hrdinka
Copy link
Contributor

hrdinka commented Dec 7, 2015

👍 thanks that fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants