You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo allows users to add subcommands by placing cargo-${subcommand-name} binary in PATH env var. On Linux (WSL), this feature works when installing those binaries by aqua.
But on Windows, this feature doesn't work. It doesn't work because cargo only looks for .exe files and aqua places .bat files.
Thank you for your report.
aqua creates shell scripts on bin directory but these scripts don't have file extension.
So maybe we can solve this issue by adding file extension.
maybe we can solve this issue by adding file extension.
Just in case, if I simply rename C:\Users\green\AppData\Local\aquaproj-aqua\bin\cargo-expand to C:\Users\green\AppData\Local\aquaproj-aqua\bin\cargo-expand.exe, I get the following error.
cargo expand
error: could not execute process `C:\Users\green\AppData\Local\aquaproj-aqua\bin\cargo-expand.exe expand` (never executed)
Caused by:
このバージョンの %1 は、実行中の Windows のバージョンと互換性がありません。コンピューターのシステム情報を確認してから 、ソフトウェアの発行元に問い合わせてください。 (os error 216)
I guess cargo runs the file directly (= without shell).
aqua info
Overview
cargo allows users to add subcommands by placing
cargo-${subcommand-name}
binary inPATH
env var. On Linux (WSL), this feature works when installing those binaries by aqua.But on Windows, this feature doesn't work. It doesn't work because cargo only looks for
.exe
files and aqua places.bat
files.How to reproduce
aqua.yaml
Executed command and output
Debug output
No response
Expected behaviour
cargo expand
command works without error like on Linux whencargo-expand
is installed by aqua.Actual behaviour
cargo expand
command shows error whencargo-expand
is installed by aqua.Note
I can just run the command with
cargo-expand
so it's not something urgent.I read https://zenn.dev/shunsuke_suzuki/scraps/88e008721e748b#comment-725555a2b1b034 and understand that this is a hard problem. I'm not sure how to solve this. 😅
The text was updated successfully, but these errors were encountered: