[Bug] Scoop should never allow wipping the whole environment variables.... #5666
-
Bug ReportCurrent BehaviorI will add more info later on, currently everything broke and imo this should not happen without a clear warning. Expected BehaviorIf a formula doesn't explicitly extend path but overwrite it it should at the very least warn the user
Additional context/outputPossible SolutionWarn, fail, disallow completely (unless I'm missing something this is prone to errrors). System detailsWindows version: [e.g. 7, 8, 10, 11] OS architecture: [e.g. 32bit, 64bit, arm64] PowerShell version: [output of Additional software: [(optional) e.g. ConEmu, Git] Scoop Configuration//# Your configuration here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Scoop manifests are just config files for a PowerShell scripts - they obviously have the potential to carry out very destructive actions. Overwriting PATH is one of them. A manifest that is directly messing with the PATH (instead of using fields like Unfortunately, it is not possible to have checks for such a wide variety of destructive actions. |
Beta Was this translation helpful? Give feedback.
Scoop manifests are just config files for a PowerShell scripts - they obviously have the potential to carry out very destructive actions. Overwriting PATH is one of them. A manifest that is directly messing with the PATH (instead of using fields like
env_add_path
) should not even be allowed in a bucket.Unfortunately, it is not possible to have checks for such a wide variety of destructive actions.