Skip to content
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

fix(cli): v1 migration should add the updater plugin if it is enabled #10481

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

lucasfernog
Copy link
Member

No description provided.

@lucasfernog lucasfernog requested a review from a team as a code owner August 4, 2024 20:10
Copy link
Contributor

github-actions bot commented Aug 4, 2024

Package Changes Through f681837

There are 3 changes which include tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-utils with prerelease

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.0.0-rc.0 2.0.0-rc.1
tauri-bundler 2.0.0-rc.0 2.0.0-rc.1
tauri-runtime 2.0.0-rc.0 2.0.0-rc.1
tauri-runtime-wry 2.0.0-rc.0 2.0.0-rc.1
tauri-codegen 2.0.0-rc.0 2.0.0-rc.1
tauri-macros 2.0.0-rc.0 2.0.0-rc.1
tauri-plugin 2.0.0-rc.0 2.0.0-rc.1
tauri-build 2.0.0-rc.0 2.0.0-rc.1
tauri 2.0.0-rc.0 2.0.0-rc.1
@tauri-apps/cli 2.0.0-rc.1 2.0.0-rc.2
tauri-cli 2.0.0-rc.1 2.0.0-rc.2

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@@ -114,6 +114,10 @@ fn migrate_config(config: &mut Value) -> Result<MigratedConfig> {
process_updater(tauri_config, &mut plugins)?;
}

if plugins.contains_key("updater") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be if let Some(updater) = tauri_config.remove("updater") { (moved into the above block)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to add the migrated argument (lazy) but it's indeed cleaner that way.. pushed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah tbh i just missed the process_updater line above that (its comment is saying cli btw) so i thought the code is actually incorrect.

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
@lucasfernog lucasfernog merged commit 2e8ab7b into dev Aug 5, 2024
11 of 12 checks passed
@lucasfernog lucasfernog deleted the feat/v1-migrate-updater branch August 5, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants