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
no longer upgrading toml files #784
Comments
We are looking at changing this behavior again. In a discussion on merging cargo upgrade into cargo, we raised some concerns. If you scroll down on that, you will see a Proposal. While there is some concern on whether it is right to merge cargo-update and cargo-upgrade, I'm assuming the planned behavior is in that direction. If you have constructive feedback on that proposal, feel free to post in that thread. |
this is a bug report of it not upgrading my toml files. your comment doesnt make sense, there ARE updates see below, this used to work fine and updated my toml and locks without extra flags
it says its compatible to upgrade to and my lockfile matches existing version already. it looks to me there is nothing to merge if this doesnt work. what is the last version that does upgrade the toml so i can downgrade to? |
It is saying that the existing version requirement is already compatible
Please provide verbose output of that run. |
|
if its compatible i want new version in my toml automatically not for me to go manually update it all. behavior is not clear or documented right. https://github.com/killercup/cargo-edit#examples-1 specially says upgrades deps but that is not what happens, usage says updates the toml too again which doesnt happen |
Could you also include full reproduction steps, including a copy of the relevant |
i literally just did but here is my toml. also see #761 which repros the issue and has the same problem i do use this toml, run cargo upgrade and see nothing change. i have my files in git so i can prove it doesnt change with git status. not even lockfile change. so its not just cargo upgrade showing no change its git too.
i just downgrade to 0.9.1 and it WORKS and upgrades my TOML files like i expect. this is regression in new version and no longer work. 0.10.0 and newer does nothing and changes no files. with 0.9.1 i see this which updates files and is different that my original comment output
cc @U007D @mqudsi from that thread if they want to add info or get a working version of this |
In terms of
$ cargo upgrade
note: Re-run with `--verbose` to show all dependencies
compatible: anyhow, url
unchanged: httpmock, serde, serde_json, toml_edit, ureq
note: Re-run with `--to-lockfile` to upgrade compatible version requirements That got the same results as you and ran according to expected behavior $ cargo upgrade --to-lockfile --verbose
name old req locked latest new req
==== ======= ====== ====== =======
anyhow 1.0.63 1.0.64 1.0.64 1.0.64
serde 1.0.144 1.0.144 1.0.144 1.0.144
serde_json 1.0.85 1.0.85 1.0.85 1.0.85
toml_edit 0.14.4 0.14.4 0.14.4 0.14.4
ureq 2.5.0 2.5.0 2.5.0 2.5.0
url 2.2.2 2.3.1 2.3.1 2.3.1
httpmock 0.6.6 0.6.6 0.6.6 0.6.6
``
That works as expected
Oh, I had missed this part
```console
> cargo upgrade --workspace --verbose --to-lockfile
Checking mylib's dependencies
name old req locked latest new req
==== ======= ====== ====== =======
anyhow 1.0.63 1.0.63 1.0.64 1.0.63
serde 1.0.144 1.0.144 1.0.144 1.0.144
serde_json 1.0.85 1.0.85 1.0.85 1.0.85
toml_edit 0.14.4 0.14.4 0.14.4 0.14.4
ureq 2.5.0 2.5.0 2.5.0 2.5.0
url 2.2.2 2.2.2 2.3.1 2.2.2
httpmock 0.6.6 0.6.6 0.6.6 0.6.6
Checking myapp's dependencies
name old req locked latest new req
==== ======= ====== ====== =======
mylib 0.1.0 0.1.0 - 0.1.0
anyhow 1.0.63 1.0.63 1.0.64 1.0.63
clap 3.2.20 3.2.20 3.2.20 3.2.20
dirs 4.0.0 4.0.0 4.0.0 4.0.0
rpassword 7.0.0 7.0.0 7.0.0 7.0.0
serde 1.0.144 1.0.144 1.0.144 1.0.144
log 0.4.17 0.4.17 0.4.17 0.4.17
simplelog 0.12.0 0.12.0 0.12.0 0.12.0 The lock file isn't up-to-date. If you run |
doing a the behavior already change and should go back to what is advertised and was working otherwise its regressed and isnt benefit to anyone when merged imo |
Same here. No more upgrades to latest versions which is the only reason I need this tool. Why??? |
@frederikhors as discussed in both threads you posted on, there are upgrades happening, just not all version requirements being bumped up. As for "why", the answer is also earlier in this thread. Rather than spamming multiple threads, retreading the same ground, a more constructive way of responding is listed in both threads (adding your use case if it isn't there already and highlighting how well the current options for cargo-upgrade work or don't work for your use case).
|
|
And it changed again! 😄 Can you please help me understand how can I use it now with 0.11.0? It was working with 0.10.14 with: What now? 🙏 |
The new behavior is described in that link but the tl;dr is that |
Thank you. I just need my |
It works with the latest. Please read carefully. @epage did a very incredible job. |
when i run
cargo upgrade
it used to actually change the .toml files, now all i get is a printout saying it found updates.running with
--verbose
only gives a table but still does nothing. even running without workspace in a crate dir only prints the same.--to-lockfile
does nothing since the toml doesnt change.behavior doesnt match description of either the app or the args. can either the app or docs be fix please for correct behavior otherwise app is useless since someone needs to manually find versions and update the tomls and then upgrade the lockfile
The text was updated successfully, but these errors were encountered: