Skip to content

"submit" fails in 1.10.2.0 #617

@lars-nvhgroup

Description

@lars-nvhgroup

Brief description of your issue

When submitting a manifest I receive the following error:

Microsoft.WingetCreateCore.Common.Exceptions.NonFastForwardException: Exception of type 'Microsoft.WingetCreateCore.Common.Exceptions.NonFastForwardException' was thrown.
at Microsoft.WingetCreateCore.Common.GitHub.UpdateForkedRepoWithUpstreamCommits(Repository forkedRepo)
at Microsoft.WingetCreateCore.Common.GitHub.<>c__DisplayClass20_0.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.AsyncPolicy.<>c__DisplayClass40_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates1 shouldRetryResultPredicates, Func5 onRetryAsync, Int32 permittedRetryCount, IEnumerable1 sleepDurationsEnumerable, Func4 sleepDurationProvider, Boolean continueOnCapturedContext) at Polly.AsyncPolicy.ExecuteAsync(Func3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at Microsoft.WingetCreateCore.Common.GitHub.SubmitPRAsync(String packageId, String version, Dictionary2 contents, Boolean submitToFork, String prTitle, Boolean shouldReplace, String replaceVersion) at Microsoft.WingetCreateCore.Common.GitHub.SubmitPRAsync(String packageId, String version, Dictionary2 contents, Boolean submitToFork, String prTitle, Boolean shouldReplace, String replaceVersion)
at Microsoft.WingetCreateCLI.Commands.BaseCommand.GitHubSubmitManifests(Manifests manifests, String prTitle, Boolean shouldReplace, String replaceVersion)
at Microsoft.WingetCreateCLI.Commands.SubmitCommand.SubmitManifest()
at Microsoft.WingetCreateCLI.Commands.SubmitCommand.Execute()
at Microsoft.WingetCreateCLI.Program.Main(String[] args)

When downgrading to 1.9.14.0 it works again.

Steps to reproduce

winget submit <manifest_path>

Expected behavior

It should not throw an error.

Actual behavior

See above.

Environment

Windows Package Manager Manifest Creator v1.9.14.0
Copyright (c) Microsoft Corporation. All rights reserved.

Operating System: Microsoft Windows NT 10.0.22631.0
System Architecture: X64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions