Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] scoop import scoopfile.json outputs "Couldn't find manifest for 'main/<pkg> --arch arm64'." #5208

Closed
giggio opened this issue Oct 19, 2022 · 3 comments · Fixed by #5247
Labels

Comments

@giggio
Copy link

giggio commented Oct 19, 2022

Bug Report

Current Behavior

Running scoop import scoopfile.json outputs several messages or error, like so:

❯ scoop import scoopfile.json
WARN  The 'extras' bucket already exists. To add this bucket again, first remove it by running 'scoop bucket rm extras'.
WARN  The 'main' bucket already exists. To add this bucket again, first remove it by running 'scoop bucket rm main'.
WARN  The 'versions' bucket already exists. To add this bucket again, first remove it by running 'scoop bucket rm versions'.
Couldn't find manifest for 'main/7zip --arch arm64'.
Couldn't find manifest for 'main/act --arch arm64'.

It's actually doznes of errors, I'm only showing 2. It's one for each pkg in the json file.

And nothing is being imported, no installations are happening.

Expected Behavior

Import succeeds.

Additional context/output

File was created in PowerShell Core 7, like this:

scoop export | Out-File .\scoopfile.json   

This is a part of this file:

{
    "apps": [
        {
            "Name": "7zip",
            "Updated": "2022-07-23T01:28:39.1460724-03:00",
            "Version": "22.01",
            "Source": "main",
            "Info": ""
        },
        {
            "Name": "act",
            "Updated": "2022-10-19T09:50:01.6658223-03:00",
            "Version": "0.2.32",
            "Source": "main",
            "Info": ""
        },
        {
            "Name": "ag",
            "Updated": "2022-10-19T10:56:21.8814541-03:00",
            "Version": "2.2.5",
            "Source": "main",
            "Info": ""
        },
        {
            "Name": "bat",
            "Updated": "2022-10-19T09:50:02.5155033-03:00",
            "Version": "0.22.1",
            "Source": "main",
            "Info": ""
        }
    ],
    "buckets": [
        {
            "Name": "extras",
            "Source": "https://github.com/ScoopInstaller/Extras",
            "Updated": "2022-10-19T09:31:37-03:00",
            "Manifests": 1708
        },
        {
            "Name": "main",
            "Source": "https://github.com/ScoopInstaller/Main",
            "Updated": "2022-10-19T09:33:37-03:00",
            "Manifests": 1100
        },
        {
            "Name": "versions",
            "Source": "https://github.com/ScoopInstaller/Versions",
            "Updated": "2022-10-19T06:34:24-03:00",
            "Manifests": 378
        }
    ]
}

I then tested the import and saw the error messages.
I tried uninstalling ag to see if it would import it, it didn't.

Possible Solution

N/A.

System details

Windows version: 11 Microsoft Windows [Version 10.0.22621.675]

OS architecture: 64bit

PowerShell version: 7.2.6

Additional software:

Scoop Configuration

{
  "last_update": "2022-10-19T12:53:41.8855938-03:00",
  "scoop_repo": "https://github.com/lukesampson/scoop",
  "scoop_branch": "master"
}
@ahmadalli
Copy link

ahmadalli commented Oct 30, 2022

I'm having the same issue. After some digging up, I've found out that the import code uses Info to determine the architecture

$arch = if ('64bit' -in $info) {
' --arch 64bit'
} elseif ('32bit' -in $info) {
' --arch 32bit'
} else {
' --arch arm64'
}

which is empty in my case (after running scoop export > scoop.json)

And Info is empty because architecture is not always added to it:

if ($install_info.architecture -and $def_arch -ne $install_info.architecture) {
$info += $install_info.architecture
}

So, #5210 will fix it when it's been released

@ohubaut
Copy link

ohubaut commented Nov 7, 2022

Any idea when a release with this fix will be issued?
As there is no way with the get.scoop.sh to specify a release to use, this breaks our onboarding procedure since we have to manually patch the installation of each newcomer. :(

@niheaven
Copy link
Member

niheaven commented Nov 7, 2022

Sorry, soon 😄

giggio added a commit to giggio/poshfiles that referenced this issue Nov 17, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants