The sound distributed version control system

#777 Compilation fails on 1.0.0-beta.4 when the openssl feature is disabled

Opened by mtkennerly on March 14, 2023
mtkennerly on March 14, 2023

Ran into this here: https://github.com/mtkennerly/dunamai/actions/runs/4419251521/jobs/7747443056 . It worked previously on 1.0.0-beta.2, but I can’t reinstall that version because Pijul 1.0.0-beta.2 now selects libpijul v1.0.0-beta.4 and fails to build due to other incompatibilities.

Installed with:

cargo install pijul --version 1.0.0-beta.4 --no-default-features --features keep-changes

Error:

error[E0599]: no variant named `RSA` found for enum `thrussh_keys::key::PublicKey`
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/pijul-1.0.0-beta.4/src/identity/create.rs:163:48
    |
163 | ...                   PublicKey::RSA { ref hash, .. } => hash.name().identity_file(),
    |                                  ^^^ variant not found in `thrussh_keys::key::PublicKey`

error[E0599]: no variant named `RSA` found for enum `thrussh_keys::key::PublicKey`
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/pijul-1.0.0-beta.4/src/identity/create.rs:175:24
    |
175 |             PublicKey::RSA { ref hash, .. } => hash.name().identity_file(),
    |                        ^^^ variant not found in `thrussh_keys::key::PublicKey`
laumann on May 9, 2023

Can confirm this, I packaged 1.0.0-beta.4 in my Gentoo overlay and was considering turning the keep-changes and openssl features into USE flags (I already have git as a USE flag). For now, I decided against it, but glad to see it was reported :-)