mozilla / nixpkgs-mozilla

Mozilla overlay for Nixpkgs.
MIT License
516 stars 128 forks source link

`couldn't find remote ref refs/heads/master` when building `/nix/store/<hash>-channel-rust-1.55.0.toml.drv` #288

Closed paulyoung closed 2 years ago

paulyoung commented 2 years ago

I've been using rustChannelOf for a while locally but started encountering an issue when trying to set up a GitHub action.

I appear to be running into https://github.com/NixOS/nix/issues/1923 and wondering how best to work around this.

https://github.com/paulyoung/icfs/runs/5619094846?check_suite_focus=true#step:4:56

...
building '/nix/store/913mq2n8d5bf0qrj68jvgl1dmpbvas75-channel-rust-1.55.0.toml.drv'...
fatal: couldn't find remote ref refs/heads/master
error: program 'git' failed with exit code 128

I still don't understand why I'm not running into this locally.

paulyoung commented 2 years ago

I added --show-trace which revealed that the problem lies elsewhere.

https://github.com/paulyoung/icfs/runs/5620664497?check_suite_focus=true#step:4:62

paulyoung commented 2 years ago

For anyone who runs into this in future, this was the problem/fix: https://github.com/nix-community/naersk/pull/211