Skip to content
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

[BUG] bat is not in PATH after installing with winget #2596

Closed
NikGovorov opened this issue Jun 13, 2023 · 3 comments
Closed

[BUG] bat is not in PATH after installing with winget #2596

NikGovorov opened this issue Jun 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@NikGovorov
Copy link

What steps will reproduce the bug?

  1. execute winget install sharkdp.bat
  2. exit terminal
  3. open terminal
  4. run bat

What happens?

Actual result: bat.exe is not in PATH

What did you expect to happen instead?

Expected result: bat.exe is in PATH

~/AppData/Local/Microsoft/WinGet/Packages/sharkdp.bat_Microsoft.Winget.Source_8wekyb3d8bbwe is in PATH, but bat.exe is located in ~/AppData/Local/Microsoft/WinGet/Packages/sharkdp.bat_Microsoft.Winget.Source_8wekyb3d8bbwe/bat-v0.23.0-x86_64-pc-windows-msvc

How did you install bat?

winget install sharkdp.bat

bat version and environment
bat-v0.23.0
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22621 N/A Build 22621

@NikGovorov NikGovorov added the bug Something isn't working label Jun 13, 2023
@NikGovorov
Copy link
Author

NikGovorov commented Jun 13, 2023

My account didn't have privileges to create symbolic links (i.e. Dev Mode was not enabled), so winget tried to add the package's root path to PATH instead of creating a symbolic link to the executable. But as the package does not have its binaries in the root, it didn't work (see the bug description). Ideally, the release workflow should zip all files without an extra bat-v0.23.0-x86_64-pc-windows-msvc subfolder to support systems with no elevated privileges or with no permission to create symbolic links. See https://github.com/ajeetdsouza/zoxide for an example.

@sharkdp
Copy link
Owner

sharkdp commented Jun 13, 2023

@sitiom Notifying you, just in case you are interested.

@sitiom
Copy link
Contributor

sitiom commented Jun 14, 2023

This should already be resolved in the latest release candidate build of Winget. For Winget bugs, you should be looking at the https://github.com/microsoft/winget-cli repo first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants