You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be a breaking change somewhere in the Octokit .NET API / GitHub API for Updating a ref. The code is throwing an exception when trying to update the fork with upstream commits
The inner exception seems to be Object reference does not exist
Who does this affect
Anyone using wingetcreate update with --submit flag or using wingetcreate submit command. If their fork is out of sync with upstream microsoft/winget-pkgs, wingetcreate would first try to sync their fork and encounter the exception
Affected versions
This code has been the same for most versions of WinGet-Create, so almost all versions of winget-create would be failing
Workaround
The immediate workaround would be to sync your winget-pkgs fork manually before calling wingetcreate. You can do this via gh CLI using gh repo sync or via the GitHub UI. If you're using wingetcreate in a CI environment, you can add a step like
Issue
There appears to be a breaking change somewhere in the Octokit .NET API / GitHub API for Updating a ref. The code is throwing an exception when trying to update the fork with upstream commits
winget-create/src/WingetCreateCore/Common/GitHub.cs
Line 487 in 60cc6f2
The inner exception seems to be
Object reference does not exist
Who does this affect
Anyone using
wingetcreate update
with--submit
flag or usingwingetcreate submit
command. If their fork is out of sync with upstream microsoft/winget-pkgs, wingetcreate would first try to sync their fork and encounter the exceptionAffected versions
This code has been the same for most versions of WinGet-Create, so almost all versions of winget-create would be failing
Workaround
The immediate workaround would be to sync your winget-pkgs fork manually before calling
wingetcreate
. You can do this via gh CLI usinggh repo sync
or via the GitHub UI. If you're using wingetcreate in a CI environment, you can add a step likeThe text was updated successfully, but these errors were encountered: