-
Notifications
You must be signed in to change notification settings - Fork 112
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
Wrong order of publishing #829
Comments
We ignore dev-dependencies to break cycles cargo-release/src/ops/cargo.rs Lines 434 to 451 in 06a4e44
However, we should only do that if the package is missing a |
Hi @epage, I experienced this issue today (I see it slightly related to #624). I understand we only can get the resolved version, not the specified version, but I think it is fine and expected by some users. As it can also be of surprise for others, I propose to add a parameter to If you like this, I may get some time to propose the fix as a PR. |
A flag is the wrong tool for this. You don't know you need the flag until you've already hit the problem. You then have to remember it every time. This is more a property of your package and should be a config. Ideally, we would have a way to tell this on a users behalf, so they don't have to run into the problem first and have to investigate to find that what they need is a flag. That leads back to what I said before about finding a way to do this where we only skip them if they are local-only, like |
Understood. One thing we can do is to filter out by the
So, if |
However, if work is being done to fix this, I think effort should be put towards a proper fix and not a hack. While a proper fix isn't as trivial, I'm hopeful its not burdensome to implement. If it is, then we can move forward with a hack. |
We set up cargo-release for the https://github.com/CosmWasm/cosmwasm workspace, but it seems the order of publishing for crates is not detected correctly. It tries to publish the dependent before the dependency, resulting in a failure mid-publishing.
To reproduce:
From the
release/2.2
branch in cosmwasm, runcargo release 2.2.0-rc.3 -x
. It tries to publishcosmwasm-std
beforecosmwasm-schema
even though the former has a dev-dependency on the latter. This causes cargo to fail publishing. Here are the relevant outputs for when I encountered this with rc.2:Maybe the problem is that dev-dependencies are not factored into the ordering?
The text was updated successfully, but these errors were encountered: