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

7zip Cleanup #5511

Closed
knightknight opened this issue May 17, 2023 · 1 comment · Fixed by #5424
Closed

7zip Cleanup #5511

knightknight opened this issue May 17, 2023 · 1 comment · Fixed by #5424
Labels

Comments

@knightknight
Copy link

Bug Report

  • Run scoop update *
    • updated 7zip
  • Run scoop cleanup *

Current Behavior

  • Run scoop cleanup *
Removing 7zip: 22.01Get-Item: C:\Users\Carl\scoop\apps\scoop\current\lib\install.ps1:1182
Line |
1182 |              $source = Get-Item "$dir\$source"
     |                        ~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\Carl\scoop\apps\7zip\22.01\Codecs' because it does not exist.
Get-Item: C:\Users\Carl\scoop\apps\scoop\current\lib\install.ps1:1182
Line |
1182 |              $source = Get-Item "$dir\$source"
     |                        ~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\Carl\scoop\apps\7zip\22.01\Formats' because it does not exist.

Expected Behavior

Run scoop cleanup * removes all old apps. No been a problem until 7zip was recently updated.

Additional context/output

  • Uninstall 7zip scoop uninstall 7zip
  • scoop update *
  • scoop status
  • scoop install 7zip

Possible Solution

Only workgin solution was to uninstall and reinstall 7zip.

System details

Windows version: [11]

OS architecture: [64bit]

PowerShell version: [output of 7.3.4]

Scoop Configuration

{
  "aria2-enabled": false,
  "last_update": "2023-05-17T09:53:13.3002572+01:00",
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/lukesampson/scoop"
}
@HUMORCE
Copy link
Member

HUMORCE commented May 30, 2023

This bug may occur when there is an error while uninstalling.

Solution:

  • Recreate directories persisted on pre_uninstall stage
    "pre_uninstall": [
        "ensure \"$dir\\Codecs\"",
        "ensure \"$dir\\Formats\""
    ],

But seems this issue needs to be fixed in Scoop Core, not a specific manifest.

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.

2 participants