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

Cannot update manifest with additional installers #506

Closed
sirredbeard opened this issue Jan 30, 2024 · 3 comments
Closed

Cannot update manifest with additional installers #506

sirredbeard opened this issue Jan 30, 2024 · 3 comments

Comments

@sirredbeard
Copy link

Brief description of your issue

I maintain sirredbeard.wslinternals. It contains a collection of portable .exe's as "installers". The new version, 0.0.14, adds a new .exe, wsl-perf.exe. I am trying to update the sirredbeard.wslinternals manifest in the repository using winget-create.

When I run winget create update, I get the error The number of new installer packages must match the number of existing installer packages.

When I try to create a new manifest to include wsl-perf, I get the error We have detected that this package identifier already exists. If you intend to update an existing package, please use the update command.

Steps to reproduce

Running wingetcreate update:

wingetcreate.exe update --urls https://github.com/sirredbeard/wslinternals/releases/download/0.0.14/0.0.14.zip --version 0.0.14 sirredbeard.wslinternals --token <token> --submit
Retrieving latest manifest for sirredbeard.wslinternals
Downloading and parsing: https://github.com/sirredbeard/wslinternals/releases/download/0.0.14/0.0.14.zip...
The number of new installer packages must match the number of existing installer packages.

Running wingetcreate new:

PS D:\wslinternals> wingetcreate.exe new https://github.com/sirredbeard/wslinternals/releases/download/0.0.14/0.0.14.zip
 --token <token>
Downloading and parsing: https://github.com/sirredbeard/wslinternals/releases/download/0.0.14/0.0.14.zip...
 Select the installer(s) from the zip archive:: list-wsl.exe, sysdistrowt.exe, wsl-dist-update.exe, wsl-latest-kernel.ex
e, wsl-perf.exe, wsl-reset.exe, wslctl.exe
This tool will walk you through a series of questions to help you create your package manifest.

For information about the restrictions for each field, visit https://aka.ms/winget-manifest-schema

Press ENTER to submit the value for each question including accepting the (default) value.

Please enter values for the following fields:
The package unique identifier |e.g. Microsoft.VisualStudio|
 [PackageIdentifier] value is: sirredbeard.wslinternals

We have detected that this package identifier already exists. If you intend to update an existing package, please use the update command.

Expected behavior

That I can overwrite existing package manifests with new manifests containing additional portable .exe's/installers.

Actual behavior

wingetcreate new says to run wingetcreate update, wingetcreate update fails

Environment

Windows Package Manager Manifest Creator v1.5.7.0

Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22635.3130
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3482.0
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@mdanish-kh
Copy link
Contributor

Related to:

Unfortunately, this package can currently only be updated through the interactive mode. Use this command for interactive update.

wingetcreate update sirredbeard.wslinternals --version 0.0.14 --interactive

@sirredbeard
Copy link
Author

I will use the interactive update process or manually edit the manifests when new utilities are added, see microsoft/winget-pkgs#137190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants