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

[bug] Tauri-bundler Breaking Change in Minor Version #7733

Closed
ealmloff opened this issue Sep 1, 2023 · 1 comment
Closed

[bug] Tauri-bundler Breaking Change in Minor Version #7733

ealmloff opened this issue Sep 1, 2023 · 1 comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@ealmloff
Copy link

ealmloff commented Sep 1, 2023

Describe the bug

The 1.3.0 version of tauri-bundler has breaking changes. Cargo considers this a non-breaking upgrade from 1.2.1 because the major version is >1.

Reproduction

Here is a repo that reproduces the issue with a cargo.lock in the correct form: https://github.com/ealmloff/tauri-bundler-breaking

Or here is a inline version:

[package]
name = "tauri-bundler-breaking"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# This build will succeed
# tauri-bundler = "=1.2.1"
# This will get resolved to 1.3.0 and fail to build
tauri-bundler = "1.2.1"
use std::collections::HashMap;

fn main() {
    tauri_bundler::DebianSettings {
        depends: None,
        files:HashMap::new(),
        // More fields are required in the 1.3.0 version of tauri-bundler
    };
}

Expected behavior

Running cargo update should not break an application that depends on tauri-bundler 1.2.1

Platform and versions

rustc 1.72.0 (5680fa18f 2023-08-23)
Cargo resolver version 2

Stack trace

No response

Additional context

See DioxusLabs/dioxus#1413 for the original discovery of this issue

@ealmloff ealmloff added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 1, 2023
@ealmloff
Copy link
Author

ealmloff commented Sep 1, 2023

I was just informed on discord that the versioning of crates tauri depends on are tied to the tauri version, not versioned with semvar

@ealmloff ealmloff closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant