-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
cargo subcommands does not work on Windows when installing those binaries by aqua #2875
Comments
Thank you for your report. aqua/pkg/installpackage/link.go Line 105 in b86c9a1
aqua/pkg/installpackage/link.go Line 143 in b86c9a1
|
I had a typo in my original post.
Just in case, if I simply rename
I guess cargo runs the file directly (= without shell). |
I see. It's hard to solve this issue.
aqua adopts the first one, but I think this issue can't be solved by the first one. |
@suzuki-shunsuke is this also the case for |
I think the subcommand of aqua info
which docker
aqua which -v docker |
I remembered. I haven't tested on Windows, so I'm not sure if it works on Windows. |
Maybe #2918 is helpful for this issue. |
Yes, #2918 works for this. If I run the following command by powershell, then # make hard link from "aqua which cargo-expand" to "aquaproj-aqua\bin\cargo-expand.exe"
$ New-Item -ItemType HardLink -Path $env:LOCALAPPDATA\aquaproj-aqua\bin\cargo-expand.exe -Value $(aqua which cargo-expand) |
#2918 was resolved, so maybe this issue was also resolved. |
Thanks for implementing #2918! Yes, it worked. |
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: