Skip to content
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

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

Open
travnick opened this issue Nov 23, 2023 · 3 comments
Open

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

travnick opened this issue Nov 23, 2023 · 3 comments
Labels

Comments

@travnick
Copy link

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         [email protected]         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

@travnick travnick added the bug label Nov 23, 2023
@HUMORCE
Copy link
Member

HUMORCE commented Dec 30, 2023

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         [email protected]         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
Copy link

alkuzad commented Jan 1, 2024

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

@travnick
Copy link
Author

travnick commented Jan 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants