fix(commands): Skip warmup script on --dry-run#1523
Conversation
|
@SomeThink1729 Thanks a lot for opening this PR! I think we should first talk a bit about the general direction. While I see that users may not want to warm-up during a So, I suggest that we make warming up in dry run an option to choose, i.e. either add a @SomeThink1729 Which variant do you like more? Can you add this to this PR? |
|
@aawsome Thanks for the feedback. Until now I didn't see the use case you're describing, but now it totally makes sense. For me personally I think this use case is more naturally and I'd put in under So I'll implement it the other way round ( |
|
After thinking about it, I agree that it may make more sense to have dry run not warm up by default. The next release will anyway break smaller things, so I think we can also introduce a breaking change here... |
|
@aawsome I've now added the discussed behaviour.
to check if both arguments are supplied or if the config is valid and continue execution. Do you think it's necessary and would like to include such a check or do you think its unnecessary? |
We could let An alternative would be to have a |
aawsome
left a comment
There was a problem hiding this comment.
Some minor findings.
I think the change should be also in the config example full.toml as well as in the README.md of the config. Besides this, seems to be ready to merge!
|
@SomeThink1729 would you like to continue working on this? If not, I can also finish this to merge it soon... |
f5fad84 to
b3afb08
Compare
## 🤖 New release * `rustic-rs`: 0.10.2 -> 0.10.3 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.10.3](v0.10.2...v0.10.3) - 2025-12-23 ### Added - *(interactive)* show summary in snapshots, ls and diff views ([#1615](#1615)) - Progress Update on non-interactive runs ([#1395](#1395)) ([#1620](#1620)) ### Fixed - *(commands)* Skip warmup script on --dry-run ([#1523](#1523)) - fix clippy lints ([#1621](#1621)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: rustic-release-plz[bot] <182542030+rustic-release-plz[bot]@users.noreply.github.com>
Skip running the warmup script when using
--dry-runforpruneandrestore.The new option
--dry-run-warmuphas been added and can be used to get the prior behavior (i.e. warm-up for a dry-run).closes #1428