Skip to content

Exception of type 'Microsoft.WingetCreateCore.Common.Exceptions.NonFastForwardException' was thrown. #614

@thejjw

Description

@thejjw

Brief description of your issue

i have below error trying to request version update for an existing winget package. could you investigate what's wrong with the request or the procedure?

PS D:\temp> wingetcreate update WinFsp.WinFsp --urls https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi --version 2.1.25156
Telemetry Settings
------------------
The Windows Package Manager Manifest Creator collects usage data in order to improve your experience.
The data is anonymous and collected only by Microsoft.
By default, telemetry is enabled but can be disabled by running `wingetcreate settings` and editing your settings file.

Retrieving latest manifest for WinFsp.WinFsp
Downloading and parsing: https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi...
Generating a preview of your manifests...
Version manifest preview:
# Created using wingetcreate 1.10.2.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.10.0.schema.json

PackageIdentifier: WinFsp.WinFsp
PackageVersion: 2.1.25156
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.10.0

Installer manifest preview:
# Created using wingetcreate 1.10.2.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.10.0.schema.json

PackageIdentifier: WinFsp.WinFsp
PackageVersion: 2.1.25156
InstallerLocale: en-US
InstallerType: wix
Scope: machine
UpgradeBehavior: uninstallPrevious
ProductCode: '{C79D9B29-3AF0-45B3-9DB9-226F3C2D2204}'
AppsAndFeaturesEntries:
- DisplayName: WinFsp 2025
  Publisher: Navimatics LLC
  ProductCode: '{C79D9B29-3AF0-45B3-9DB9-226F3C2D2204}'
  UpgradeCode: '{5466A3D8-3AA1-4240-B6A0-3A051940A3EC}'
InstallationMetadata:
  DefaultInstallLocation: '%ProgramFiles(x86)%\DYNAMIC'
Installers:
- Architecture: x86
  InstallerUrl: https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi
  InstallerSha256: 073A70E00F77423E34BED98B86E600DEF93393BA5822204FAC57A29324DB9F7A
ManifestType: installer
ManifestVersion: 1.10.0

Default locale manifest preview:
# Created using wingetcreate 1.10.2.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.10.0.schema.json

PackageIdentifier: WinFsp.WinFsp
PackageVersion: 2.1.25156
PackageLocale: en-US
Publisher: Navimatics LLC
PublisherUrl: https://github.com/winfsp
PublisherSupportUrl: https://github.com/winfsp/winfsp/issues
PackageName: WinFsp 2023
PackageUrl: https://winfsp.dev/
License: GPLv3
LicenseUrl: https://github.com/winfsp/winfsp/blob/HEAD/License.txt
Copyright: Copyright (C) Bill Zissimopoulos
CopyrightUrl: https://github.com/winfsp/winfsp/blob/master/License.txt
ShortDescription: Windows File System Proxy - FUSE for Windows
Description: |-
  WinFsp enables developers to write their own file systems (i.e. "Windows drives") as user mode programs and without any knowledge of Windows kernel programming.
  It is similar to FUSE (Filesystem in Userspace) for Linux and other UNIX-like computers.
Tags:
- sshfs
- winfsp
ManifestType: defaultLocale
ManifestVersion: 1.10.0


Manifest saved to D:\temp\manifests\w\WinFsp\WinFsp\2.1.25156

Manifest validation succeeded: True

PS D:\temp> wingetcreate update WinFsp.WinFsp --urls https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi --version 2.1.25156 --submit
Retrieving latest manifest for WinFsp.WinFsp
Downloading and parsing: https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi...
Generating a preview of your manifests...
Version manifest preview:
# Created using wingetcreate 1.10.2.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.10.0.schema.json

PackageIdentifier: WinFsp.WinFsp
PackageVersion: 2.1.25156
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.10.0

Installer manifest preview:
# Created using wingetcreate 1.10.2.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.10.0.schema.json

PackageIdentifier: WinFsp.WinFsp
PackageVersion: 2.1.25156
InstallerLocale: en-US
InstallerType: wix
Scope: machine
UpgradeBehavior: uninstallPrevious
ProductCode: '{C79D9B29-3AF0-45B3-9DB9-226F3C2D2204}'
AppsAndFeaturesEntries:
- DisplayName: WinFsp 2025
  Publisher: Navimatics LLC
  ProductCode: '{C79D9B29-3AF0-45B3-9DB9-226F3C2D2204}'
  UpgradeCode: '{5466A3D8-3AA1-4240-B6A0-3A051940A3EC}'
InstallationMetadata:
  DefaultInstallLocation: '%ProgramFiles(x86)%\DYNAMIC'
Installers:
- Architecture: x86
  InstallerUrl: https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi
  InstallerSha256: 073A70E00F77423E34BED98B86E600DEF93393BA5822204FAC57A29324DB9F7A
ManifestType: installer
ManifestVersion: 1.10.0

Default locale manifest preview:
# Created using wingetcreate 1.10.2.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.10.0.schema.json

PackageIdentifier: WinFsp.WinFsp
PackageVersion: 2.1.25156
PackageLocale: en-US
Publisher: Navimatics LLC
PublisherUrl: https://github.com/winfsp
PublisherSupportUrl: https://github.com/winfsp/winfsp/issues
PackageName: WinFsp 2023
PackageUrl: https://winfsp.dev/
License: GPLv3
LicenseUrl: https://github.com/winfsp/winfsp/blob/HEAD/License.txt
Copyright: Copyright (C) Bill Zissimopoulos
CopyrightUrl: https://github.com/winfsp/winfsp/blob/master/License.txt
ShortDescription: Windows File System Proxy - FUSE for Windows
Description: |-
  WinFsp enables developers to write their own file systems (i.e. "Windows drives") as user mode programs and without any knowledge of Windows kernel programming.
  It is similar to FUSE (Filesystem in Userspace) for Linux and other UNIX-like computers.
Tags:
- sshfs
- winfsp
ManifestType: defaultLocale
ManifestVersion: 1.10.0


Manifest saved to D:\temp\manifests\w\WinFsp\WinFsp\2.1.25156

Manifest validation succeeded: True

A GitHub account or personal access token must be linked in order to continue with this command.
Execution of the command is paused until the GitHub login has been completed.

Initiating GitHub login...

Launching web browser... If default web browser does not launch, please go to: https://github.com/login/device
Please enter the following user verification code when prompted: 1188-AE66

Token stored in cache successfully.
Resuming command execution...
Submitting pull request for manifest...

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.<<SubmitPRAsync>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
   at Polly.AsyncPolicy.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
   at Microsoft.WingetCreateCore.Common.GitHub.SubmitPRAsync(String packageId, String version, Dictionary`2 contents, Boolean submitToFork, String prTitle, Boolean shouldReplace, String replaceVersion)
   at Microsoft.WingetCreateCore.Common.GitHub.SubmitPRAsync(String packageId, String version, Dictionary`2 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.UpdateCommand.ExecuteManifestUpdate(List`1 latestManifestContent, CommandExecutedEvent commandEvent)
   at Microsoft.WingetCreateCLI.Commands.UpdateCommand.Execute()
   at Microsoft.WingetCreateCLI.Program.Main(String[] args)
PS D:\temp>

Steps to reproduce

wingetcreate update WinFsp.WinFsp --urls https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-2.1.25156.msi --version 2.1.25156 --submit

Expected behavior

new manifest upload (pr)

Actual behavior

error

Environment

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

Operating System: Microsoft Windows NT 10.0.26100.0
System Architecture: X64

Winget-Create Directories  Path                                                                                         
------------------------------------------------------------------------------------------------------------------------------------------
Logs                       %LOCALAPPDATA%\Packages\Microsoft.WindowsPackageManagerManifestCreator_8wekyb3d8bbwe\LocalState\DiagOutputDir
User settings              %LOCALAPPDATA%\Packages\Microsoft.WindowsPackageManagerManifestCreator_8wekyb3d8bbwe\LocalState\settings.json
Installer cache            %TEMP%\wingetcreate                                                                          

Links
------------------------------------------------------------------
Privacy Statement    https://aka.ms/winget-create-privacy
License Agreement    https://aka.ms/winget-create-license
Third Party Notices  https://aka.ms/winget-create-3rdPartyNotice
Homepage             https://aka.ms/winget-create

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions