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] unresolved import clap::Command #3549

Closed
JonasKruckenberg opened this issue Feb 24, 2022 · 1 comment
Closed

[bug] unresolved import clap::Command #3549

JonasKruckenberg opened this issue Feb 24, 2022 · 1 comment

Comments

@JonasKruckenberg
Copy link
Contributor

JonasKruckenberg commented Feb 24, 2022

Describe the bug

The compilation of my app fail when trying to build tauri@1.0.0-rc.3 with the following error:

/Users/jonaskruckenberg/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-rc.3/src/api/cli.rs:12:29
   |
12 | use clap::{Arg, ArgMatches, Command, ErrorKind};
   |                             ^^^^^^^ no `Command` in the root

Reproduction

No response

Expected behavior

No response

Platform and versions

Operating System - Mac OS, version 12.2.0 X64
WARNING: no lock files found, defaulting to npm

Node.js environment
  Node.js - 16.13.2
  @tauri-apps/cli - 1.0.0-rc.4 (outdated, latest: 1.0.0-rc.5)
  @tauri-apps/api - Not installed

Global packages
  npm - 8.1.2
  pnpm - 6.30.1
  yarn - 3.1.0

Rust environment
  rustup - 1.24.3
  rustc - 1.58.1
  cargo - 1.58.0
  toolchain - stable-aarch64-apple-darwin 

App directory structure
/cypress
/dist
/node_modules
/public
/.vite
/src

App
  tauri - 1.0.0-rc.3 (no lockfile)
  tauri-build - no manifest (no lockfile)
  tao - no manifest (no lockfile)
  wry - no manifest (no lockfile)
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../../plz-out/gen/frontend/dist/client
  devPath - http://localhost:3000/
  framework - React

(It appears tauri info doesn't like my workspace based setup 😅 )

Stack trace

N/A

Additional context

I'm using nix, so I'm pretty confident the issue is with me, not tauri. But just to make sure we should investigate this.
EDIT: Nope this is a real bug

@lucasfernog
Copy link
Member

I think a cargo update should fix this right?

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

No branches or pull requests

2 participants