I have a variety of local repositories (not stored on github, but strictly on my own machine) that I address through file:///
links. I also have a Cargo.nix
file, generated with crate2nix
, which includes this stanza:
src = pkgs.fetchgit {
url = "file:///home/savanni/src/fluent-ergonomics/";
rev = "d6adea30d2edfb8c7049459ff1e640f0c4def487";
sha256 = "17vdf91caivz5afg51azk1lg7fgph3mjm6kbvszvkgvjxb4gw0pa";
};
I generated this file a month ago and installed the application that uses this file. No problems until the last couple of days.
Now, suddenly, nixbld seems unable to clone the above repository.
git/
fatal: '/home/savanni/src/fluent-ergonomics/' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: '/home/savanni/src/fluent-ergonomics/' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Unable to checkout d6adea30d2edfb8c7049459ff1e640f0c4def487 from file:///home/savanni/src/fluent-ergonomics/.
error: builder for '/nix/store/c5icfznbamr36z9chq4s5dcrws0c9671-fluent-ergonomics-d6adea3.drv' failed with exit code 1;
last 10 log lines:
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
> fatal: '/home/savanni/src/fluent-ergonomics/' does not appear to be a git repository
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
> Unable to checkout d6adea30d2edfb8c7049459ff1e640f0c4def487 from file:///home/savanni/src/fluent-ergonomics/.
For full logs, run 'nix log /nix/store/c5icfznbamr36z9chq4s5dcrws0c9671-fluent-ergonomics-d6adea3.drv'.
I’ve verified that it’s not a permissions issue by becoming the nixbld1
user and moving to that directory above.
So, where do I go next to diagnose it? Would something have changed recently to make fetchgit not accept file:///
links? This is something I use frequently when developing updates to my software, so I depend on it to be able to install my software without needing to publish it.