feat: allow to configure the apt upgrade method on debian#749
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #749 +/- ##
========================================
- Coverage 5.03% 4.98% -0.06%
========================================
Files 37 37
Lines 12085 12216 +131
========================================
Hits 609 609
- Misses 11476 11607 +131 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi, thanks for your interest in contributing to Topgrade! The CI failures are not related, please rebase your branch (against main) to get them resolved:)
I can see this disaster, in your opinion, what is the appropriate default command to use? And, I am thinking, it is suitable for most users, then we can actually replace |
dist-upgrade, which was the hard-coded option, is allowed to remove packages in order to resolve dependency conflicts. This might cause quite a mess ... it is left as the default, but can be modified by the option apt_command.
My use case for topgrade is 'keep the system relatively up-to-date without too much hassle', so for that, |
Thanks for the info! I am thinking about:
I would like to hear your thoughts on this since I am not a Debian user:) |
|
The longer I think about it:
I think it is a little confusing to configure the subcommand by hand but let the package manager be autodetected. So maybe the most sensible variant is to have the auto-detected tool with Alternatively, maybe a boolean option |
Yeah, I agree that it feels weird
Though I feel Topgrade should not do such things (let the user write the whole script) either |
From PR topgrade-rs#749. Co-Authored-By: Claude Opus 4.6 <[email protected]>
dist-upgrade, which was the hard-coded option, is allowed to remove packages in order to resolve dependency conflicts. This might cause quite a mess ... it is left as the default, but can be modified by the option apt_command.
Standards checklist:
CONTRIBUTING.mdcargo build)cargo fmt)cargo clippy)cargo test)For new steps
--dry-runoption works with this step--yesoption works with this step if it is supported bythe underlying command
If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.