How to manually add links to package binaries where link installation is broken #266374
Unanswered
infogulch
asked this question in
Show and tell
Replies: 1 comment 1 reply
-
This package works by appending the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes package installation doesn't add links when it should. For example, for me today,
winget install BrechtSanders.WinLibs.POSIX.MSVCRT
says that it added links with logs like this:Command line alias added: "gcc"
but no links were present.In lieu of an official fix (you should probably open a bug report), I wrote a powershell snippet that, for each executable in the current directory, creates a symbolic link to it in the winget links directory:
ls *.exe | foreach { new-item -itemtype symboliclink -path "$env:localappdata\Microsoft\WinGet\Links\$(split-path "$_" -leaf)" -target "$_" }
Beta Was this translation helpful? Give feedback.
All reactions