ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.91k stars 1.39k forks source link

[Bug] scoop uninstalls itself while try to install apps #5739

Open travnick opened 9 months ago

travnick commented 9 months ago

Bug Report

scoop uninstalls itself while try to install apps.

Current Behavior

scoop uninstalls itself while try to install apps. What happened here? I'm building a Windows container.

Expected Behavior

scoop does not uninstall itself on app installation. scoop installs requested app.

Additional context/output

Step 6/25 : RUN powershell -ExecutionPolicy RemoteSigned -Command "irm get.scoop.sh | iex"     && SET "PATH=%PATH%;%USERPROFILE%\scoop\shims"
 ---> Running in 883f7d2cd944
Initializing...
Downloading ...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
Removing intermediate container 883f7d2cd944
 ---> c4d340b34df2
Step 7/25 : RUN scoop install --no-cache --no-update-scoop --arch 64bit         git         scoop bucket add         versions         java         && scoop install --no-cache --no-update-scoop --arch 64bit         conan@1.62.0         versions/nodejs18         java/temurin-lts-jre        && SET "PATH=%PATH%;%PROGRAMFILES%\Conan"
 ---> Running in af3f9699a90c
WARN  Purging previous failed installation of scoop.
WARN  This will uninstall Scoop and all the programs that have been installed with Scoop!
Removing ~\scoop\shims from your path.
Scoop has been uninstalled.

System details

Windows version: 10 (docker image) docker pull mcr.microsoft.com/windows:ltsc2019

OS architecture: 64bit

PowerShell version: 5.1

Additional software:

Scoop Configuration

HUMORCE commented 8 months ago
Step 7/25 : RUN scoop install --no-cache --no-update-scoop --arch 64bit         git         scoop bucket add         versions         java         && scoop install --no-cache --no-update-scoop --arch 64bit         conan@1.62.0         versions/nodejs18         java/temurin-lts-jre        && SET "PATH=%PATH%;%PROGRAMFILES%\Conan"

what is the original scripts/commands of this?

I think it executes scoop install --no-cache --no-update-scoop --arch 64bit git scoop actually, then triggered the uninstallation of Scoop, but It should be blocked by interactive prompts. (refer. #5734)

alkuzad commented 8 months ago

so isn't that "&&" missing after "git" ?

travnick commented 8 months ago

True! But not able to verify if it solves the issue, since migrated away from scoop because lack of error reporting.

But anyway, there is an install command, not uninstall