You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation also tells me that these must be absolute paths (totally legitimate restriction), with defaulting to %LOCALAPPDATA%/Microsoft/WinGet/Packages/ and %PROGRAMFILES%/WinGet/Packages/ respectively, in case they are not defined.
Thus, I conclude that I can use CMD-style variables in the paths, i.e., I would expect %USERPROFILE%/.winget/ to work.
Alas, it results in a validation failure:
PS C:\Users\FooBar> winget settings
Unexpected error while loading settings. Please verify your settings by running the 'settings' command.
The following failures were found validating the settings:
Invalid field value. Field: .installBehavior.defaultInstallRoot Value: %USERPROFILE%/.winget/
Invalid field value. Field: .installBehavior.portablePackageUserRoot Value: %USERPROFILE%/.winget/
Either the documentation should say that it must be an absolute path and no variables are allowed, or winget should dereference variables.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://github.com/microsoft/winget-cli/blob/master/doc/Settings.md tells me that I can define installations paths for (non-)portable installations with
The documentation also tells me that these must be absolute paths (totally legitimate restriction), with defaulting to
%LOCALAPPDATA%/Microsoft/WinGet/Packages/
and%PROGRAMFILES%/WinGet/Packages/
respectively, in case they are not defined.Thus, I conclude that I can use CMD-style variables in the paths, i.e., I would expect
%USERPROFILE%/.winget/
to work.Alas, it results in a validation failure:
Either the documentation should say that it must be an absolute path and no variables are allowed, or winget should dereference variables.
Am I missing something here?
Beta Was this translation helpful? Give feedback.
All reactions