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-cli build fails projects with workspace license field #9997

Closed
anatawa12 opened this issue Jun 6, 2024 · 0 comments
Closed

[bug] tauri-cli build fails projects with workspace license field #9997

anatawa12 opened this issue Jun 6, 2024 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@anatawa12
Copy link
Contributor

anatawa12 commented Jun 6, 2024

Describe the bug

tauri-cli build fails projects with workspace license field.

I found this bug during testing #

It looks 253595a adds license to the CargoPackageSettings but it does not accept license.workspace.

> cargo tauri build
       Error failed to load cargo settings: failed to parse Cargo.toml: TOML parse error at line 8, column 1
  |
8 | license.workspace = true
  | ^^^^^^^
invalid type: map, expected a string

Reproduction

create empty tauri project with workspace and set license.workspace = true

Expected behavior

license.workspace = true does not cause error

Full tauri info output

> cargo tauri info

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 125.0.2535.85
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.11.1
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 1.6.7
    - tauri-build [RUST]: 1.5.2
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - tauri-cli [RUST]: 1.5.14 EDIT: Please note that this is fake version. using 66ad3fd5623d567c297bc73fed2ac7c7b4978452
    - @tauri-apps/api [NPM]: 1.5.6
    - @tauri-apps/cli [NPM]: 1.5.14

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: out
    - devPath: http://localhost:3000/
    - framework: React (Next.js)
    - bundler: Webpack

Stack trace

No response

Additional context

https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table

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

2 participants