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] first call to scoop update after install throws warning #5199

Closed
josephnarai opened this issue Oct 17, 2022 · 0 comments · Fixed by ScoopInstaller/Install#33
Closed
Labels

Comments

@josephnarai
Copy link

Bug Report

Current Behavior

First call to scoop update after installing scoop throws the following

scoop update

Add-Member : Cannot add a member with the name "last_update" because a member with that name already exists. To overwrite the member anyway, add the Force parameter to your command.
At C:\scoop\apps\scoop\current\lib\core.ps1:1241 char:28
+ ... oopConfig | Add-Member -MemberType NoteProperty -Name $_.Value -Value ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{last_update=2..._branch=master}:PSObject) [Add-Member], InvalidOperationException
    + FullyQualifiedErrorId : MemberAlreadyExists,Microsoft.PowerShell.Commands.AddMemberCommand

Subsequent calls do not throw the exception.

Expected Behavior

Updating Scoop...
Updating 'main' bucket...
Scoop was updated successfully!

Additional context/output

Possible Solution

System details

Windows version: [e.g. 7, 8, 10, 11]
Windows 10 and 11

OS architecture: [e.g. 32bit, 64bit, arm64]
64 bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
Major Minor Build Revision


5 1 22621 608

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

Scoop Configuration

{
"last_update": "2022-10-17T11:38:10.3950776+11:00",
"scoop_branch": "master",
"scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}

//# Your configuration here
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