-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Scoop-Reset: The architecture specific 'env_add_path' would not be reset. #4000
Comments
scoop reset is still not complete. if you can fix this and file a pr it would be great. also i you notice then scoop reset does not execute post or pre install commands or normal install commands too. |
Yeah, I've noticed it a long time ago, but that part is clearly acknowledged. Yet the |
Fix #4000, handle arch-specific env_add_path
Hi, all.
Recently, I've tried to move my
SCOOP
home to another directory, and I can not reset the architecture specificenv_add_path
stated in some of my custom manifests. For example, I have a snippet of the manifest looks like this:It is expected that the path should be set targeting my new
SCOOP_HOME
, yet it did not.After some debugging, I found out that the function
env_add_path
https://github.com/lukesampson/scoop/blob/96de9c14bb483f9278e4b0a9e22b1923ee752901/lib/install.ps1#L940 actually takes an$arch
parameter, yet the calling line ofenv_add_path $manifest $dir
https://github.com/lukesampson/scoop/blob/96de9c14bb483f9278e4b0a9e22b1923ee752901/libexec/scoop-reset.ps1#L76 choose not to pass the$architecture
as well as the$global
.So...
Is this line intended to be like this and why, or just an inadvertent issue and I should submit a PR?
The text was updated successfully, but these errors were encountered: