Skip to content

Instantly share code, notes, and snippets.

@thewh1teagle
Last active February 26, 2024 17:14
Show Gist options
  • Save thewh1teagle/c02830ccaf2abb5d2e58443d5a42015f to your computer and use it in GitHub Desktop.
Save thewh1teagle/c02830ccaf2abb5d2e58443d5a42015f to your computer and use it in GitHub Desktop.

Tauri updated fork thewh1teagle/tauri#app

Cargo.toml

[dependencies]
tauri = { git = "https://github.com/thewh1teagle/tauri", branch = "app", features = [
    "unstable",
    "devtools",
    "force-ipc-v1-protocol",
] } 

[dependencies.tauri-plugin-sql]
features = ["sqlite"]
version = "2.0.0-beta.1"
# alternatively with Git
git = "https://github.com/tauri-apps/plugins-workspace"
branch = "v2"

Update

cargo update tauri
    Blocking waiting for file lock on package cache
    Updating git repository `https://github.com/thewh1teagle/tauri`
warning: skipping duplicate package `api` found at `/Users/user/.cargo/git/checkouts/tauri-48ed713a8a9423ab/830885f/examples/api/src-tauri`
    Updating crates.io index
warning: Patch `wry v0.35.2 (https://github.com/thewh1teagle/wry?rev=f8de248683a42d56b6c24d079eecb34e20db983a#f8de2486)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.

Build

npx tauri dev
        Info Watching /Users/user/Documents/tapx/tapx1/src-tauri for changes...
warning: skipping duplicate package `api` found at `/Users/user/.cargo/git/checkouts/tauri-48ed713a8a9423ab/830885f/examples/api/src-tauri`
    Updating git repository `https://github.com/tauri-apps/plugins-workspace`
    Updating crates.io index
error: failed to select a version for `tauri`.
    ... required by package `tauri-plugin-sql v2.0.0-beta.1 (https://github.com/tauri-apps/plugins-workspace?branch=v2#dc6d3321)`
    ... which satisfies git dependency `tauri-plugin-sql` of package `now_deeply v0.2.8 (/Users/user/Documents/tapx/tapx1/src-tauri)`
versions that meet the requirements `^2.0.0-beta.4` are: 2.0.0-beta.6, 2.0.0-beta.5, 2.0.0-beta.4

the package `tauri` links to the native library `Tauri`, but it conflicts with a previous package which links to `Tauri` as well:
package `tauri v2.0.0-beta.6 (https://github.com/thewh1teagle/tauri?branch=app#830885f4)`
    ... which satisfies git dependency `tauri` (locked to 2.0.0-beta.6) of package `now_deeply v0.2.8 (/Users/user/Documents/tapx/tapx1/src-tauri)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='tauri' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `tauri` which could resolve this conflict

Tauri updated fork thewh1teagle/tauri#app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment