Skip to content

[Windows] Replace aqua-proxy and symbolic links to small BAT files #893

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

Closed
suzuki-shunsuke opened this issue Jun 18, 2022 · 1 comment · Fixed by #892
Closed

[Windows] Replace aqua-proxy and symbolic links to small BAT files #893

suzuki-shunsuke opened this issue Jun 18, 2022 · 1 comment · Fixed by #892
Labels
enhancement New feature or request windows

Comments

@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Jun 18, 2022

Feature Overview

On Windows, create smal BAT files instead of installing aqua-proxy and create symbolic links.

Why is the feature needed?

Please explain the problem you want to solve.

On Windows, there are two problems regarding symbolic links.

  1. To create symbolic links, you have to run Terminal (cmd.exe, PowerShell, Git Bash, etc) as Administrator or enable Developer Mode
  2. PowerShell has a bug about symbolic link PowerShell doesn't use the final target of a symbolic link when starting a process or running a native command on Windows PowerShell/PowerShell#16171

Does the feature include Breaking Changes?

No.

Example Code

command and configuration

Command and configuration aren't changed.

aqua creates the following files on bin directory.

AQUA_ROOT_DIR/bin/gh # cli/cli

@echo off
aqua exec -- gh %*

This is basically same as aqua-proxy.

Reference

@suzuki-shunsuke
Copy link
Member Author

aqua creates executable BAT files and shell scripts in directories AQUA_ROOT_DIR/bin and AQUA_ROOT_DIR/bat instead of symbolic links.

If you use PowerShell or Command Prompt, please add AQUA_ROOT_DIR/bat to the environment variable PATH.
Or if you use Git Bash, please add AQUA_ROOT_DIR/bin to the environment variable PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant