Skip to content

[bug] cargo tauri migrate doesn't migrate tauri.conf.json #13819

@kornelski

Description

@kornelski

Describe the bug

I have a Tauri project that stopped working after 2.0.0-alpha.8

I'm trying to revive it, but to my great disappointment, cargo tauri migrate doesn't seem to do anything. It doesn't output anything at all by default. It doesn't modify any files. It doesn't report any problems. It doesn't report any incompatibilities.

It doesn't update tauri.conf.json to whatever new structure it's supposed to have, which leaves Tauri completely unusable.

cargo tauri migrate --verbose prints Debug [tauri_cli::helpers::app_paths] Found Tauri project inside ... and debug about gitignore (the conf file isn't ignored).

Reproduction

Clone https://gitlab.com/kornelski/gifski-win/-/tree/tauri-migrate-flop
and run cargo tauri migrate

cargo tauri migrate
cargo tauri dev
       Error `tauri.conf.json` error: "identifier" is a required property
       Error `tauri.conf.json` error on `build`: Additional properties are not allowed ('devPath', 'distDir', 'withGlobalTauri' were unexpected)
       Error `tauri.conf.json` error: Additional properties are not allowed ('package', 'tauri' were unexpected)

Expected behavior

I hope it would understand the config from all previous versions, and fix it to work with the latest version.

OR at least print an error message that this config format is dead and abandoned. Printing nothing at all while failing to migrate, looks like a bug.

Full tauri info output

cargo tauri info
       Error `tauri.conf.json` error: "identifier" is a required property
       Error `tauri.conf.json` error on `build`: Additional properties are not allowed ('devPath', 'distDir', 'withGlobalTauri' were unexpected)
       Error `tauri.conf.json` error: Additional properties are not allowed ('package', 'tauri' were unexpected)

Stack trace


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions