The sound distributed version control system

#269 clone is broken

Closed on January 17, 2021
tankf33der on January 17, 2021

pijul alpha.35 from crates cant clone no matter HTTPS or SSH

$ rm -rf pijul
$ pijul clone https://nest.pijul.com/pijul/pijul
✓ Updating remote changelist
✓ Applying changes      294/294
✓ Downloading changes   294/294
$ cd pijul
bash: cd: pijul: No such file or directory
$
tankf33der on January 17, 2021

Cant downgrade to alpha.34 too:

  Compiling reqwest v0.11.0
   Compiling pijul v1.0.0-alpha.34
error[E0308]: mismatched types
   --> /home/mpech/.cargo/registry/src/github.com-1ecc6299db9ec823/pijul-1.0.0-alpha.34/src/commands/pushpull.rs:313:46
    |
313 |                     if txn.channel_has_state(&channel.borrow(), m)?.is_some() {
    |                                              ^^^^^^^^^^^^^^^^^ expected struct `sanakirja::Db`, found struct `std::cell::Ref`
    |
    = note: expected reference `&sanakirja::Db<Merkle, u64>`
               found reference `&std::cell::Ref<'_, libpijul::pristine::sanakirja::Channel>`

error[E0308]: mismatched types
   --> /home/mpech/.cargo/registry/src/github.com-1ecc6299db9ec823/pijul-1.0.0-alpha.34/src/commands/pushpull.rs:340:50
    |
340 |                         if txn.channel_has_state(&channel.borrow(), m)?.is_some() {
    |                                                  ^^^^^^^^^^^^^^^^^ expected struct `sanakirja::Db`, found struct `std::cell::Ref`
    |
    = note: expected reference `&sanakirja::Db<Merkle, u64>`
               found reference `&std::cell::Ref<'_, libpijul::pristine::sanakirja::Channel>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
error: failed to compile `pijul v1.0.0-alpha.34`, intermediate artifacts can be found at `/tmp/cargo-installhx1Am1`

Caused by:
  could not compile `pijul`

To learn more, run the command again with --verbose.
pmeunier added a change on January 17, 2021
HR3WK6A7KKILCHI2CD2BZSZQJUS44MJIT2K3WPKJBHUXGRKAQDRQC
main
pmeunier added a change on January 17, 2021
SN7AGY6SLIWVKLBHQQ2MZ7VYY4BBFKROC5F3M6FVVFIGT25QNX7AC
main
pmeunier added a change on January 17, 2021
Version bump + formatting created on January 16, 2021
HSVGP2G4D2F56DS3YKZLSYPS4A5BNGH4NTAXAOZ57OCXFM3E5AYAC
main
pmeunier on January 17, 2021

Fixed, thanks! This bug was due to a timeout in pijul lock, which would clean things up if the command that called pijul lock crashed. But this turned into “always exit after one second”.

pmeunier closed this discussion on January 17, 2021
tankf33der on January 17, 2021

Fixed.