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 import doesnt work properly on "clean" machine #5251

Closed
milnak opened this issue Nov 15, 2022 · 0 comments · Fixed by #5247
Closed

[Bug] scoop import doesnt work properly on "clean" machine #5251

milnak opened this issue Nov 15, 2022 · 0 comments · Fixed by #5247
Labels

Comments

@milnak
Copy link

milnak commented Nov 15, 2022

Bug Report

Current Behavior

export from one machine, import on another, and it's not working properly.

Expected Behavior

Expect it to work.

Additional context/output

Export configuration using scoop export --config | Out-File export.json

The exported configuration I used is at the bottom of this report.

Open Windows Sandbox to get a pristine Windows config (can use copy and paste of the file)

Copy export.json to Windows Sandbox

Open PowerShell (note that it runs as admin in Windows Sandbox).

Set-ExecutionPolicy -Force Unrestricted

Invoke-Expression "& {$(Invoke-RestMethod get.scoop.sh)} -RunAsAdmin"

scoop import ./export.json

Will fail with ERROR Git is required for buckets. Run 'scoop install git' and try again.. Seems like scoop import should install git if needed, but not a big deal.

scoop install git

Now try again:

scoop import ./export.json

Will fail because manifests aren't found:

PS C:\Users\WDAGUtilityAccount> scoop import .\export.json
'cat_style' has been set to 'plain'
'aria2-warning-enabled' has been set to 'False'
'aria2-max-connection-per-server' has been set to '2'
'show_update_log' has been set to 'False'
'scoop_repo' has been set to 'https://github.com/ScoopInstaller/Scoop'
'scoop_branch' has been set to 'master'
Checking repo... OK
The extras bucket was added successfully.
WARN  The 'main' bucket already exists. To add this bucket again, first remove it by running 'scoop bucket rm main'.
Couldn't find manifest for 'main/7zip --arch arm64'.
Couldn't find manifest for 'extras/age --arch arm64'.

Possible Solution

(n/a)

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 5.1.22000.832

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
    "config": {
        "cat_style": "plain",
        "aria2-warning-enabled": false,
        "aria2-max-connection-per-server": "2",
        "show_update_log": false,
        "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
        "scoop_branch": "master"
    },
    "buckets": [
        {
            "Name": "extras",
            "Source": "https://github.com/ScoopInstaller/Extras",
            "Updated": "2022-11-14T12:27:53-08:00",
            "Manifests": 1730
        },
        {
            "Name": "main",
            "Source": "https://github.com/ScoopInstaller/Main",
            "Updated": "2022-11-14T12:28:26-08:00",
            "Manifests": 1115
        }
    ],
    "apps": [
        {
            "Info": "",
            "Name": "7zip",
            "Version": "22.01",
            "Source": "main",
            "Updated": "2022-10-20T23:23:00.7702417-07:00"
        },
        {
            "Info": "",
            "Name": "age",
            "Version": "1.1.0-rc.1",
            "Source": "extras",
            "Updated": "2022-10-14T15:44:20.9729499-07:00"
        }
   ]
}
@milnak milnak added the bug label Nov 15, 2022
@milnak milnak changed the title [Bug] scoop import doesnt work properly [Bug] scoop import doesnt work properly on "clean" machine Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant