ostreedev/ostree-rs-ext

Build failures when compiling locally

jlebon opened this issue · 0 comments

Not sure yet on the difference between my setup and CI, but trying to build locally I'm hitting

   Compiling ostree-ext v0.8.0 (/var/home/jlebon/Code/github.com/ostreedev/ostree-rs-ext/lib)
error[E0599]: no method named `send_replace` found for reference `&tokio::sync::watch::Sender<std::option::Option<LayerProgress>>` in the current scope
   --> lib/src/container/unencapsulate.rs:211:26
    |
211 |                 progress.send_replace(Some(status));
    |                          ^^^^^^^^^^^^ method not found in `&tokio::sync::watch::Sender<std::option::Option<LayerProgress>>`

error[E0599]: no method named `atomic_write` found for reference `&ostree::cap_std::fs::Dir` in the current scope
   --> lib/src/container/ocidir.rs:120:13
    |
120 |         dir.atomic_write("oci-layout", r#"{"imageLayoutVersion":"1.0.0"}"#)?;
    |             ^^^^^^^^^^^^ method not found in `&ostree::cap_std::fs::Dir`

error[E0599]: no method named `atomic_replace_with` found for struct `Arc<ostree::cap_std::fs::Dir>` in the current scope
   --> lib/src/container/ocidir.rs:134:18
    |
134 |                 .atomic_replace_with(&path, |w| std::io::copy(&mut src, w))?;
    |                  ^^^^^^^^^^^^^^^^^^^ method not found in `Arc<ostree::cap_std::fs::Dir>`

error[E0599]: no method named `atomic_replace_with` found for struct `Arc<ostree::cap_std::fs::Dir>` in the current scope
   --> lib/src/container/ocidir.rs:262:14
    |
262 |             .atomic_replace_with("index.json", |w| -> Result<()> {
    |              ^^^^^^^^^^^^^^^^^^^ method not found in `Arc<ostree::cap_std::fs::Dir>`

$ rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)