-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 info
does not correctly identify @tauri-apps/api version
#4106
Comments
Ayyy, another yarn berry specific issue 🥳 thx for the report, you're not the first one mentioning this issue, but at least we know now that it's a yarn berry thing, thx! |
Hey @FabianLars! Happy to contribute--if you have a central tracking ticket for this I can take a stab at this (seemingly small) bug fix. Cheers! |
I suspect the fix may involve some simple detection of the Yarn version, so hopefully not a huge deal. |
We always appreciate PRs!
Yeah, it's this gh issue here :P (Unless i misunderstood your question? But yeah, we're not tracking it elsewhere.) For a start, this is the function that reads the version: https://github.com/tauri-apps/tauri/blob/dev/tooling/cli/src/info.rs#L193-L230 |
Describe the bug
When using Yarn Berry (3.2, PnP mode), the Tauri CLI does not correctly identify the installed version of
@tauri-apps/api
.Reproduction
yarn init -2
yarn add -D @tauri-apps/cli
yarn add @tauri-apps/api
yarn install
yarn tauri info
Expected behavior
yarn tauri info
currently returns@tauri-apps/api [NPM]: Not installed!
when listing packages.yarn tauri info
should return the correct version of the installed package (e.g.@tauri-apps/api [NPM]: 1.0.0-rc.5
) when listing packages.Platform and versions
Stack trace
No response
Additional context
Likely not required, but for exact reproduction you can use the following VSCode devcontainer.
Dockerfile
devcontainer.json
The text was updated successfully, but these errors were encountered: