-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 a crate that depends on itself as a dev dependency #15151
Comments
In 1.84, we always include a lockfile, rather than trying to detect when it would be relevant like we did before. When we create a Before, were you using |
Another case affected by lockfiles is #15059 |
Yup, forgot about that but our publish script use |
Could this be bypassed for dev-dependencies when using |
It has nothing to do with publish verification. It is about For your case, could you try removing the |
I tried removing the version and packaging the crate. it means the tests in the resulting packaged crate don't compile as they were written expecting the feature to be enabled. We could feature gate the tests |
Testing of From #4242 (comment)
Note that there are other problems with depending on yourself (for some reason not finding the issue atm). iirc In some cases, you can depend on a second copy of your library instead of the main copy of it. |
Problem
It used to be possible to publish a crate that depends upon itself as a dev dependency:
This pattern is useful when you have a feature that you want to enable for tests
This worked on January 3rd, see the dev dependencies of https://crates.io/crates/bevy_math/0.15.1/dependencies published with cargo 1.83
This failed today with cargo 1.84.1
Steps
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: