Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Topgrade does not upgrade itself when run in terminal #782

Closed
juppes2 opened this issue Oct 26, 2021 · 7 comments
Closed

Topgrade does not upgrade itself when run in terminal #782

juppes2 opened this issue Oct 26, 2021 · 7 comments

Comments

@juppes2
Copy link

juppes2 commented Oct 26, 2021

Hello,
Today I ran topgrade (7.1.0), and it tried to upgrade itself to version 8.0.0. When it was almost at the end dealing with toml, the process was aborted, and a long error list appeared. Since I am not a programmer, I do not understand the errors, because they seem to have something to do with the code or Rust.
Hopefully you can tell me how to go about this. Btw, downloading the release and trying to build results in the same errors.

Thank you in advance for troubleshooting

@MCOfficer
Copy link
Contributor

MCOfficer commented Oct 26, 2021

Have a look at #783, i have a hunch that's the issue you're seeing. if the error there does not look familiar, please post the output of your build command here alongside your rust version (rustc --version).

@juppes2
Copy link
Author

juppes2 commented Oct 26, 2021

Hello,
Thank you for the quick response. You are right: in #783 there are exactly the same errors. My rustc version is 1.51.0, which seems to be outdated for the new release.
Can I update my rustc? Or should I just continue to run topgrade like before, but ignore the errors for the moment? What would you recommend?

@MCOfficer
Copy link
Contributor

MCOfficer commented Oct 26, 2021

Hello, Thank you for the quick response. You are right: in #783 there are exactly the same errors. My rustc version is 1.51.0, which seems to be outdated for the new release. Can I update my rustc? Or should I just continue to run topgrade like before, but ignore the errors for the moment? What would you recommend?

Depends entirely on how you've obtained rust.

If you've installed it via rustup, simply rustup update will do the trick. Staying on stable versions is very much recommended anyways, and usually topgrade does it for you, but only after trying to self-update before updating itself (via cargo).

If you've gotten it from your package manager of choice, you can either

  • Wait for the official repositories to catch up
  • Uninstall that outdated rust and use rustup instead
  • Just download the topgrade binary and place it in your PATH, to avoid self-compiling it altogether (again, Release version 8.0.0 only has windows binaries #780 might be an issue there)

Really, it's your choice. If there's nothing in the 8.0.0 changelog you desperately want, and you prefer getting everything via package manager, it's probably best to just wait. Official repos are slow, but reliable, they will catch up eventually.


Edit: you can avoid the errors entirely by using topgrade --disable cargo, but that will also disable updates for any other cargo packages you might have installed.

@juppes2
Copy link
Author

juppes2 commented Oct 27, 2021

Thank you for your good advice. I think, I will just leave things as they are for the moment. I am on Linux Mint 20 and will wait until the package manager has caught up. I will see how long it will take, but since the failed upgrade for topgrade does not do any harm except for stretching out the whole upgrade process a bit, I can live with that for a while.
No big deal...

@juppes2
Copy link
Author

juppes2 commented Oct 27, 2021

At least I know what is going on and understand.

@MCOfficer
Copy link
Contributor

MCOfficer commented Oct 28, 2021

Fixed by #789, which will be part of the next release (not 8.0.1, the one after).

Edit: 8.0.2 is out.

@juppes2
Copy link
Author

juppes2 commented Oct 29, 2021

Obviously the LInux Mint repositories are up to date as of today, it seems. Running topgrade updated it to 8.0.3 without any errors.
Wonderful!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants