Pijul clones a non-empty remote repo into an empty repo

Greetings,

I’m running:

$ pijul --version
pijul 0.7.2

when I clone this repo: pijul clone https://nest.pijul.com/pmeunier/nix-rust

It results in an empty repo, with the .pijul directory containing empty patches:

ls -la
total 12
drwxr-xr-x  3 stewart users 4096 Nov 19 16:35 .
drwxr-xr-x 99 stewart users 4096 Nov 19 16:35 ..
drwxr-xr-x  4 stewart users 4096 Nov 19 16:35 .pijul

please advise

This is because your version of Pijul is too old. You need Pijul >= 0.8.3 to clone from the Nest.

Ah okay, that was from nixpkgs, I’ll update that and see how it goes! Thanks!

Bit of a bummer, but pijul needs its lockfile updated so nix can build it using the old rust toolchain on nixpkgs. Correctly updating the SHAs (sha256 and cargoSha256) resulted in this error:

building path(s) ‘/nix/store/hmk3hljcri7wxfld3yd9gna20pn4mckr-pijul-0.8.3’
unpacking sources
unpacking source archive /nix/store/cqlnlvbsi4kqd0rc9c7x0w8rhjcq3xdy-pijul-0.8.3.tar.gz
source root is pijul-0.8.3/pijul
patching sources
configuring
building
Running cargo build --release 
error: the lock file needs to be updated but --locked was passed to prevent this

Ah wait, this is because the old rust toolchain is out of date… looking forward to the carnix approach!

cargo install pijul solved it.