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 ensure_in_path function in core.ps1 adds the scoop bin path at the beginning of the PATH, which might cause some unexpected problem if some other existing path has the same exe.
Usually, we should append the new path (scoop one here) to the existing PATH.
@copdips Hi, I just came across your issue and couldn't help but notice your were working on the ensure_in_path function which is called by the ensure_scoop_in_path function.
Hello,
The
ensure_in_path
function incore.ps1
adds the scoop bin path at the beginning of the PATH, which might cause some unexpected problem if some other existing path has the same exe.Usually, we should append the new path (scoop one here) to the existing PATH.
https://github.com/lukesampson/scoop/blob/master/lib/core.ps1#L426
https://github.com/lukesampson/scoop/blob/master/lib/core.ps1#L427
maybe following code is better:
same thing for the function
add_first_in_path
https://github.com/lukesampson/scoop/blob/master/lib/install.ps1#L1035
The text was updated successfully, but these errors were encountered: