Open pcgeek86 opened 1 year ago
A lot of those errors are just because you would need to remove the .env so that the compilation doesn't try to use a live database.
The unix ones are legitimate issues, I would need to use macro to handle windows signals. The hyper one i'm surprised, I would expect hyper to cross-compile to windows.
error[E0432]: unresolved import `tokio::signal::unix`
--> windmill-common\src/lib.rs:75:24
|
75 | use tokio::signal::unix::SignalKind;
| ^^^^ could not find `unix` in `signal`
error[E0432]: unresolved import `hyper`
--> windmill-common\src\error.rs:17:5
|
17 | use hyper::StatusCode;
| ^^^^^ use of undeclared crate or module `hyper`
error[E0432]: unresolved import `hyper`
--> windmill-common\src\utils.rs:14:5
|
14 | use hyper::{HeaderMap, StatusCode};
| ^^^^^ use of undeclared crate or module `hyper`
error[E0432]: unresolved import `hyper`
--> windmill-common\src/lib.rs:112:9
|
112 | use hyper::StatusCode;
| ^^^^^ use of undeclared crate or module `hyper`
error[E0433]: failed to resolve: could not find `unix` in `signal`
--> windmill-common\src/lib.rs:78:24
|
78 | tokio::signal::unix::signal(SignalKind::terminate())?
| ^^^^ could not find `unix` in `signal`
error[E0282]: type annotations needed
--> windmill-common\src\utils.rs:96:5
|
96 | Ok((status, response.headers().clone(), response))
| ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
help: consider specifying the generic arguments
|
96 | Ok::<(StatusCode, HeaderMap, reqwest::Response), E>((status, response.headers().clone(), response))
| +++++++++++++++++++++++++++++++++++++++++++++++++
Some errors have detailed explanations: E0282, E0432, E0433.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `windmill-common` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
Any update on this? I was surprised, a lot of basic cmdlets are not available in Powershell on Linux.
The unix signal is easy to gate behind a feature flag but not sure why hyper doesn't compile out of the box. We do not have enough customers requiring windmill binaries under Windows and we have quite a bit of priority items so this will have to be contributed by the community for now. As a note, windmill does work with windows using WSL and docker.
As a note, windmill does work with windows using WSL and docker.
Thank you for the tip with the WSL. The Powershell in WSL is perfect but how do I get the Worker Containers to use the Powershell from the Host? I tried adding the WSL Powershell folder as a volume but the container couldnt execute it.
Describe the bug
When I try to compile the Windmill worker on the Windows 11 platform, I am receiving an error.
Originally posted here: https://discord.com/channels/930051556043276338/1067814967228776448/threads/1128085091772538930
To reproduce
scoop install rustup git
mkdir \git; cd \git
git clone https://github.com/windmill-labs/windmill/
cd .\windmill\backend\windmill-worker\
cargo build
Expected behavior
Windmill worker compiles successfully
Screenshots
Browser information
n/a
Application version
main branch
Additional Context
n/a