Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the trait bound Task is not satisfied #320

Closed
Mossaka opened this issue Oct 2, 2024 · 1 comment
Closed

the trait bound Task is not satisfied #320

Mossaka opened this issue Oct 2, 2024 · 1 comment

Comments

@Mossaka
Copy link
Member

Mossaka commented Oct 2, 2024

When compiling containerd-shim v0.7.1 crate, I got the following error:

error[E0277]: the trait bound `std::boxed::Box<<T as synchronous::Shim>::T>: Task` is not satisfied
   --> /home/mossaka/.cargo/registry/src/index.crates.io-6f17d22bba15001f/containerd-shim-0.7.1/src/synchronous/mod.rs:267:44
    |
267 |             let task_service = create_task(Arc::new(Box::new(task)));
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Task` is not implemented for `std::boxed::Box<<T as synchronous::Shim>::T>`
    |
    = note: required for the cast from `Arc<std::boxed::Box<<T as synchronous::Shim>::T>>` to `Arc<(dyn Task + Send + Sync + 'static)>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `containerd-shim` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to verify package tarball

This is blocking the runwasi release pipeline to publish a new crate version.

@Mossaka Mossaka changed the title the trait bound std::boxed::Box<<T as synchronous::Shim>::T>: Task is not satisfied the trait bound Task is not satisfied Oct 2, 2024
@Mossaka
Copy link
Member Author

Mossaka commented Oct 3, 2024

Fixed by #321

@Mossaka Mossaka closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant