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

Cannot publish scheduler crate for 43.0.0 release #1166

Closed
andygrove opened this issue Jan 20, 2025 · 1 comment
Closed

Cannot publish scheduler crate for 43.0.0 release #1166

andygrove opened this issue Jan 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@andygrove
Copy link
Member

Describe the bug

I am trying to release Ballista 43.0.0, but running cargo publish for the scheduler crate fails with:

error: cannot find derive macro `Deserialize` in this scope
   --> /Users/andy/git/apache/datafusion-ballista/target/package/ballista-scheduler-43.0.0/target/debug/build/ballista-scheduler-a26118d4b65eb90d/out/scheduler_configure_me_config.rs:414:14
    |
414 |     #[derive(Deserialize, Default)]
    |              ^^^^^^^^^^^
    |
help: consider importing one of these derive macros
    |
411 +     use configure_me::Deserialize;
    |
411 +     use serde::Deserialize;
    |

error: cannot find attribute `serde` in this scope
   --> /Users/andy/git/apache/datafusion-ballista/target/package/ballista-scheduler-43.0.0/target/debug/build/ballista-scheduler-a26118d4b65eb90d/out/scheduler_configure_me_config.rs:415:7
    |
415 |     #[serde(crate = "crate::configure_me::serde")]
    |       ^^^^^
    |
    = note: `serde` is in scope, but it is a crate, not an attribute

error[E0277]: the trait bound `config::raw::Config: Deserialize<'_>` is not satisfied
   --> /Users/andy/git/apache/datafusion-ballista/target/package/ballista-scheduler-43.0.0/target/debug/build/ballista-scheduler-a26118d4b65eb90d/out/scheduler_configure_me_config.rs:453:13
    |
453 |             ::configure_me::toml::from_slice(&config_content).map_err(|error| super::Error::ConfigParsing { file: config_file_name.as_ref().into(), error })
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `config::raw::Config`
    |

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@andygrove andygrove added the bug Something isn't working label Jan 20, 2025
@andygrove
Copy link
Member Author

The error above happens on my Mac, but it worked fine on Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant