-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
SFSU uses "legacy" method for locating custom Scoop installation #180
Comments
Hey, sorry for the late response, How have you set the custom directory? I have had scoop set in a custom directory for ages and it has never been an issue for me. |
First, I uninstalled Then, I installed again, but this time to a custom directory as followed (source):
And thank you for this utility. I hope Edit: On Windows 11 (21H2) |
Ah, yeah generally the way to change Scoop's install dir is via the SCOOP and SCOOP_GLOBAL environment variables respectively. This is how sfsu detects the install directory, and the Scoop install script detects these as well. I probably could add support for the arguments passed to the install script, but I'm not sure where I'd start and the environment variable solution is what is mentioned in the docs, and what most people are using. Also implementing another solution for another edge case would add more overhead to startup that I don't really want. I'd suggest using this as well, don't worry about uninstalling scoop again, but you can just set the environment variables to their respective directories, and everything should work fine. If for any reaason you can't use the env variable solution, let me know and I'll work on implementing the other way. |
Now, I see. I didn't go the route of using environment variables, because the scoop doc says it's a "legacy method" and "not recommended". Anyhow.. I'll just use the environment variables. Edit: Some how, I can't remove the label "bug" for this issue, because obviously this is not a bug. |
Huh, honestly didn't realise it was considered "legacy". I'll see if I can work on supporting the new method.
I believe only maintainers can edit issue labels |
Describe the bug
sfsu
commands, such assearch
andlist
, cannot be run without it showing an error, whenscoop
is installed at a custom location. e.g.scoop
installed atP:
and not at ~/scoop.To Reproduce
Steps to reproduce the behavior:
scoop
at another drive letter other than its default location, i.e. ~/scoopsfsu
sfsu list
Expected behavior
sfsu list
should successfully return with installed packages.Full Output
> sfsu list
thread 'main' panicked at 'Scoop path does not exist', src\main.rs:51:9
Version [e.g. 1.4.7]
Additional context
I thought this issue would've been fixed by #11.
I'm not a dev, so please excuse me if I'm incorrect.
The text was updated successfully, but these errors were encountered: