Nukesor / pueue

:stars: Manage your shell commands.
Apache License 2.0
5.04k stars 134 forks source link

Compiling from Git repo fails on Windows #529

Closed clin1234 closed 6 months ago

clin1234 commented 6 months ago

Describe the bug

Not sure if it's directly supported on Windows, but I tried compiling pueue from Git. Got the following error:


error[E0432]: unresolved import `winapi::um::errhandlingapi`
   --> pueue_lib\src\process_helper\windows.rs:9:17
    |
9   | ...m::errhandlingapi::GetL...
    |       ^^^^^^^^^^^^^^ could not find `errhandlingapi` in `um`
    |
note: found an item that was configured out
   --> C:\Users\ךינשגכהד\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-0.3.9\src\um\mod.rs:113:44
    |
113 | ...mod errhandlingapi;
    |        ^^^^^^^^^^^^^^
    = note: the item is gated behind the `errhandlingapi` feature

For more information about this error, try `rustc --explain E0432`.
warning: `pueue-lib` (lib) generated 1 warning
error: could not compile `pueue-lib` (lib) due to 1 previous error; 1 warning emitted

I did not install winapi directly through cargo.

Steps to reproduce

  1. cargo install --git https://github.com/Nukesor/pueue

Debug logs (if relevant)

No response

Operating system

Windows 11

Pueue version

N/A

Additional context

No response

Nukesor commented 6 months ago

Could you try adding --locked as described in the installation instructions?

clin1234 commented 6 months ago

Compilation works with --locked