Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Build failures when compiling locally #316

Closed
jlebon opened this issue Jun 24, 2022 · 0 comments · Fixed by #320
Closed

Build failures when compiling locally #316

jlebon opened this issue Jun 24, 2022 · 0 comments · Fixed by #320

Comments

@jlebon
Copy link
Member

jlebon commented Jun 24, 2022

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)
jlebon added a commit to jlebon/ostree-rs-ext that referenced this issue Jun 24, 2022
We use `Sender::send_replace` which was added in 1.13.0:
tokio-rs/tokio#3962

Closes: ostreedev#316
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant