-
Notifications
You must be signed in to change notification settings - Fork 121
[WIP] Implement config v0 -> v1 migration. #1653
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
Closed
Closed
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
953b2db
Have "dist init" only migrate from Cargo.toml configs to v0 generic c…
duckinator e1576c3
Make "dist migrate" convert from v0 to v1 config.
duckinator 0b7f6d8
[WIP, BROKEN] start making "dist init" use v1 config
duckinator 9f39ac6
[WIP, BROKEN] apply_*() at least seem like they'll compile now
duckinator 1d9f415
Add BoolOr::truthy() to simplify logic elsewhere.
duckinator 0999c3a
derive Default for InstallerLayer.
duckinator f9527bf
Migrate first chunk of get_new_dist_metadata() to v1 config
duckinator b0ff20a
derive Default for PublisherLayer.
duckinator 942ec4e
made enough progress on get_new_dist_metadata() that i'm getting owne…
duckinator 05867a5
[formatting cleanup] clean up /* and */ indentation levels, and white…
duckinator 4cf359e
formatting cleanup
duckinator 441902c
initial stab at cleaning up ownership etc
mistydemeo 3434474
Have "dist init" run do_migrate() if using a v0 config.
duckinator c376686
Have "dist generate" print an error if you have a v0 config.
duckinator 25eab8c
[WIP] attempt to migrate "dist generate" to v1 config
duckinator 46dc61d
have is_v0_config() return false when trying to load v1 configs.
duckinator 9abf07c
Revert "have is_v0_config() return false when trying to load v1 confi…
duckinator ddef86e
Use try_load_config() instead of parse_metadata_table_or_manifest() i…
duckinator 77872aa
??? third ??? attempt at making is_v0_config work right
duckinator d833cd9
Try being more precise about config versions
mistydemeo 931ba50
Fix package config handling
mistydemeo 37b251a
init: handle CLI hosting options
mistydemeo dfdec22
init: update installers to use orig_meta
mistydemeo 20b9a88
Make "dist init" automatically migrate from v0 to v1 config.
duckinator 495726f
Have init perform migrations before everything else.
duckinator 230eed5
Have apply_dist_to_metadata() handle targets field.
duckinator 152e1fa
add some ... plumbing?... related code to apply_dist_to_metadata()
duckinator 083daaa
v1: remove duplicate hosts.github handler
mistydemeo 29b2df1
config: remove unused functions
mistydemeo 983610d
More dist init TOML formatting.
duckinator 107e212
Have dist init add most of the comments for [dist.installers]
duckinator 83a7619
Have "dist init" add comments under [dist.installers] for things in C…
duckinator 99d1d02
add TODO(migration) comments for tracking what work needs to be done
duckinator 52d1caf
Remove dead code.
duckinator 3e6c407
Only have "dist init" show online installers if we have somewhere to …
duckinator 6ddf8a0
removed now-unused argument to apply_dist_to_workspace_toml().
duckinator 19b73f6
move pkg to offline/bundled installers; remove now-unneeded apply_opt…
duckinator 61765c2
Remove unneeded code.
duckinator 896a4f8
Finish apply_installers_homebrew().
duckinator 849b1b5
remove commented-out code
duckinator 86292bc
apply_artifacts()
duckinator 6bc0d1c
fix apply_installers_homebrew()
duckinator 0dd9e54
resolve clippy warnings
duckinator 8061922
Rename BoolOr::truthy() to BoolOr::not_false()
duckinator 1684847
Add BoolOrOptExt, implementing Option<BoolOr<T>>::none_or_false()
duckinator 8f76407
re-enable inlining the default install_path if not specified
duckinator 7f746ba
minor cleanup
duckinator 9ef9e4e
finish implementing apply_installers_npm()
duckinator b045a9d
finish apply_installers_msi()
duckinator b9489c8
Add Option<BoolOr<T>>::is_some_and_not_false(), use get_or_insert{,_w…
duckinator 3901685
use is_some_and_not_false() more
duckinator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.