Skip to content

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

Merged
lucasfernog merged 4 commits intodevfrom
feat/v1-migrate-updater
Aug 5, 2024
Merged

fix(cli): v1 migration should add the updater plugin if it is enabled#10481
lucasfernog merged 4 commits intodevfrom
feat/v1-migrate-updater

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
@github-actions
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

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.

@lucasfernog lucasfernog requested a review from FabianLars August 5, 2024 12:49
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
@lucasfernog lucasfernog merged commit 2e8ab7b into dev Aug 5, 2024
@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