-
-
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
Isolate scoop path to separate environment variable #1813
Comments
Hi. |
This would also solve an issue I have. In the current implementation, it is tricky to get shims override commands in system dirs. This is due to Windows nature in which system PATH will be prepended before user PATH. |
I created an idea that refers to it, that I think it could be a good inclusion to the discuss: #5059. I recently started to use So, I don't know the impact of this suggestion to the whole project, but... why
EDIT: thinking better about it, if every app that need to be included in the (...) A complementar suggestion: to declare a |
This comment was marked as off-topic.
This comment was marked as off-topic.
Guys, why this issue isn't evolving? Is there any block? |
No block as of now, contributions welcome :) |
I'll see what I can do, but Dot.Net is not my main skill. Thanks |
The codebase does not use .NET or C# directly, so no need to worry about that, it's just one language - PowerShell (which is internally based on .NET). |
@rashil2000, what will be a reasonable migration to a
This is different issue: Should we have a different issue for this? |
just saw this: #5395 |
Yes |
ok, I'll give a shot on this one. |
.\test\bin\init.ps1
.\test\bin\test.ps1 |
This feature can be tested from here: |
@hagaigold Is there a PR opened here already? |
Not yet. |
Thanks @hagaigold, I will, and merge main back too, but I think you should open a PR. This will get tested by more and mainly get reviewed by maintainers which should help speed up the integration :) |
I am not sure this will work. |
Then develop 😅 , I meant the base branch you used |
Just came across this issue, Wish I had found it before raising the PR but so be it. PR open which implements this (albeit VERY crudely). Feedback welcome |
Originally posted by @Chaoses-Ib in #5874:
|
So how does one resolve this issue as an user? I haven't been able to update for a couple of weeks now, finally decided to look in to and indeed my path is over 8200 characters in length |
Here is one workaround: $backup = $env:PATH
$env:PATH = "${env:USERPROFILE}\scoop\shims;C:\Windows\System32"
scoop update
$env:PATH = $backup Though it may be better to find a way to clear up your |
I have lots of other utilities that are constantly fiddling with my user PATH, and sometimes these utilities and scoop get into fights and wreck things. It'd be nice if scoop could limit all its changes to a single
$env:SCOOP_PATH
variable, which I could interpolate into my ownPATH
at whatever position (and hence precedence) I want.The text was updated successfully, but these errors were encountered: