Repository navigation
feat(rig-cli): shorten the warning for a 0.46 home's plugins.toml and defaults.json - #3245
Merged
Merged
Conversation
… defaults.json Each warning is now one sentence pair: rig no longer reads the file, move its settings to [plugins] or [model] in settings.toml (see MIGRATING.md), the file was not changed. The key lists are gone.
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow-up to #3239. The warning for a rig 0.46 home's leftover
plugins.toml/defaults.jsontook three or four wrapped lines per file in the terminal view. It is now one short line each, pointing at MIGRATING.md for the details instead of listing keys.The rule is unchanged: a file is warned of when it exists in
RIG_HOMEandsettings.tomlhas no[plugins](forplugins.toml) or[model](fordefaults.json) table; an empty table still silences it. Where it shows is unchanged too (terminal view notice,rig -pstderr,--jsonnotice record), once perrigstart.Before:
After:
Decided alone: the paths are shown in full as now, not shortened to
~, so the line names exactly the file rig found (also whenRIG_HOMEis set elsewhere).Changelog
plugins.tomlordefaults.jsonis one short line per file, pointing at MIGRATING.md.Migration
None.
Type of change
Testing
Test changed on purpose:
run::tests::a_0_46_home_is_warned_of_once_per_run_and_left_as_it_isnow also checks each line starts withrig no longer readsand names MIGRATING.md, besides the file and its table. Everything else it checks (two lines on the first start, none on reload, files untouched, no warning for covered or fresh homes) is as before. It also gains a case: asettings.tomlwith an empty[plugins]and an empty[model]gets no warning (the rule was not tested before)."See MIGRATING.md": MIGRATING.md has no section on this yet because it is generated at release; #3005's
## Migrationnote, which describes movingplugins.tomlanddefaults.jsonintosettings.toml, becomes the next release's section there.cargo nextest run --locked --profile local -p rig-cli 0_46(2 passed)cargo clippy --locked -p rig-cli --all-targets -- -D warningsProduction lines: +6 / -17. Test lines: +17 / -5.
Try it: