Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

[Feature] Set no_junction per application

Open nicerloop opened this issue 1 year ago • 0 comments

Feature Request

Is your feature request related to a problem? Please describe.

I want to be able to update pwsh with scoop run from pwsh This requires no_junction to be enabled during install or update (due to some recursive path problems in setting up the shim). But I do not want to change the default behaviour for all other applications.

Describe the solution you'd like

I would like an install-time flag that would be persisted in install.json and used whenever any operation handles the application (update, status, reset ...).

scoop install --no-junction main/pwsh

Given sufficient guidance, I could try an implement this feature if it is deemed valuable in scoop

Describe alternatives you've considered

My current workaround is to install pwsh with no_junction enabled, hold it, and disable no_junction.

scoop config no_junction true
scoop install pwsh
scoop hold pwsh
scoop config no_junction true

Then to perform the update, I re-enable no_junction, unhold pwsh, update pwsh, and re-disable no_junction

scoop config no_junction true
scoop config ignore_running_processes true
scoop unhold pwsh
scoop update pwsh
scoop hold pwsh
scoop config no_junction false
scoop config ignore_running_processes false

nicerloop avatar Jul 31 '24 13:07 nicerloop