`couldn't find remote ref refs/heads/master` when building `/nix/store/<hash>-channel-rust-1.55.0.toml.drv`
paulyoung opened this issue · 2 comments
paulyoung commented
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 NixOS/nix#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
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
For anyone who runs into this in future, this was the problem/fix: nix-community/naersk#211