-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat: allow to configure the apt upgrade method on debian #749
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: 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. |
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 |
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.md
cargo build
)cargo fmt
)cargo clippy
)cargo test
)For new steps
--dry-run
option works with this step--yes
option 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.