-
Notifications
You must be signed in to change notification settings - Fork 646
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
publishing: add a CI task to test packaging/building of all published crates individually #11985
Comments
This comment was marked as spam.
This comment was marked as spam.
I'm running into the following problem: We want to
What if
There seems to be no option to enforce using the path dependency. Intuitively this makes sense, as all dependencies of a published crate should be published too. I can think of the following workarounds:
Perhaps I'm missing another workaround that is more promising? |
Dummy registry would probably be ideal approach here as it would emulate the actual workload we're looking to test here the best. There are some projects that provide such a thing, https://github.com/hirevo/alexandrie/ seems most straightforward from a brief look? List of all sorts of tools are here: https://github.com/rust-lang/cargo/wiki/Third-party-registries. |
Thanks for the pointers. I'll give the dummy registry approach a try. |
Some further issues popped up after setting up a dummy registry and publishing crates to them:
Making all of this work in CI might require going down some rabbit holes. I'm unassigning myself as I should move on to another project instead. For anyone who might tackle this in the future, I can recommend |
Our current CI tests a combination of all crates in the workspace, which can lead to issues related to crate features especially which are an additive combination. In particular a different crate may be enabling a feature crucial for a crate, meaning the faulty crate would not compile in isolation.
Something like what's in #11983
The text was updated successfully, but these errors were encountered: