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] I can't update any apps using pwsh 7 #6211

Open
MetalDevOps opened this issue Nov 1, 2024 · 5 comments
Open

[Bug] I can't update any apps using pwsh 7 #6211

MetalDevOps opened this issue Nov 1, 2024 · 5 comments
Labels

Comments

@MetalDevOps
Copy link

Bug Report

Current Behavior

After running the scoop update * command, the output informs which apps need updating but the execution ends without updating any. If I try to update an app individually, the same behavior occurs. Using Windows Powershell, it works perfectly.

image

Additional context/output

The problem started to occur after updating to pwsh 7.4.6, but rolling back to previous versions did not solve the problem.

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 7.4.6

Scoop Configuration

{
  "last_update": "2024-10-31T20:29:11.861105-03:00",
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "aria2-warning-enabled": false
}
@MetalDevOps MetalDevOps added the bug label Nov 1, 2024
@HUMORCE
Copy link
Member

HUMORCE commented Nov 7, 2024

Cannot reproduce.

Do you have different profiles between Windows PowerShell and PowerShell Core? If so, check them.

@MetalDevOps
Copy link
Author

Hi @HUMORCE

Yes, I use the same profile, but when my main profile is loaded in Windows Powershell, it gives some errors.

I did a test here, I removed my profile and after that it started working again using Powershell Core, so I imagine that something in my profile caused a bug in the scoop, I will be testing to see what could have caused it, thanks for the tip.

@MetalDevOps
Copy link
Author

Got it, I had set an alias with the name "update" in my profile, after removing the alias the scoop started working again, I just wonder if this behavior is expected.

@HUMORCE
Copy link
Member

HUMORCE commented Nov 7, 2024

Reproduction:

❯ Set-Alias -Name update -Value "#"

❯ scoop update *
gh: 2.60.1 -> 2.61.0
Updating one outdated app:
update: C:\Users\humorce\scoop\apps\scoop\current\libexec\scoop-update.ps1:465
Line |
 465 |      $outdated | ForEach-Object { update @_ $quiet $independent $sugge …
     |                                   ~~~~~~
     | The term '#' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of
     | the name, or if a path was included, verify that the path is correct and try again.

@MetalDevOps
Copy link
Author

Reproduction:

create a function on powershell profile:

function Update-Profile {
        . $PROFILE
}
Set-Alias update Update-Profile

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

2 participants