Repository navigation
Fix PATH behavior of non-symlink installations for Portables/Zip - #3002
Merged
Merged
Conversation
Ryan (ryfu-msft)
marked this pull request as draft
February 22, 2023 23:02
added 2 commits
February 23, 2023 00:09
Ryan (ryfu-msft)
marked this pull request as ready for review
February 23, 2023 17:04
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This was referenced Mar 25, 2023
This was referenced Apr 6, 2023
1 task done
This was referenced Apr 29, 2023
Root directory of portable packages is always added to the PATH regardless of
RelativeFilePath
#2909
Closed
This was referenced May 7, 2023
how to restart your shell to use the new value? |
Contributor
Basically, to make the console (you are using) recognize newly added env variables, you'll have to restart it. For example, if you are running winget in Powershell, just close and start a new Powershell window. Only new instances of Powershell will recognize new portable added by winget. Same for CMD, WindowsTerminal, etc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes:
RelativeFilePath#2909Description:
When failing to create a symlink (non-developer mode or non-admin), we should be adding the package install directory directly to PATH. However, the default root directory for portable packages was always being added instead. This has been causing issues when users attempt to execute the command alias, which fails to recognize the portable executable/symlink. This is especially problematic for portable(s) in zips as their
RelativeFilePathwas being ignored.Changes:
Tests:
ffmpegwhich was the example identified in the issues above.Microsoft Reviewers: Open in CodeFlow