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

update/new does not work when additional architecture are added for a package #570

Open
nebula-it opened this issue Dec 18, 2024 · 2 comments

Comments

@nebula-it
Copy link

Brief description of your issue

wingetcreate update/new does not work when additional architecture are added for a package

Steps to reproduce

Update

wingetcreate update --out $env:TEMP -t <token> https://github.com/siderolabs/talos/releases/download/v1.9.0/talosctl-windows-amd64.exe https://github.com/siderolabs/talos/releases/download/v1.9.0/talosctl-windows-arm64.exe

Fails with:
Version https://github.com/siderolabs/talos/releases/download/v1.9.0/talosctl-windows-arm64.exe does not exist for https://github.com/siderolabs/talos/releases/download/v1.9.0/talosctl-windows-amd64.exe in the Windows Package Manager repository.

New

wingetcreate new --out $env:TEMP -t <token> https://github.com/siderolabs/talos/releases/download/v1.9.0/talosctl-windows-amd64.exe https://github.com/siderolabs/talos/releases/download/v1.9.0/talosctl-windows-arm64.exe

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

Expected behavior

Wingetcreate should update the manifest and add in the new architecture

Actual behavior

Wingetcreate fails to update package

Environment

Windows Package Manager Manifest Creator v1.9.2.0
@mdanish-kh
Copy link
Contributor

Duplicate of #351;

See #351 (comment)

@nebula-it
Copy link
Author

Thank you. Is there a way to pass multiple installer URLs in that mode?
Running wingetcreate update Sidero.talosctl --version 1.9.0 -t <token> --interactive only prompts me for one installer URL and if I select edit manifest files and then Installer File > Installers, it errors out with:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.WingetCreateCore.Common.Extensions.ToEnumAttributeValue(Enum enumVal)
   at Microsoft.WingetCreateCLI.PromptHelper.GenerateInstallerSelectionList(List`1 installers, Dictionary`2& installerSelectionMap)
   at Microsoft.WingetCreateCLI.PromptHelper.DisplayInstallersAsMenuSelection(InstallerManifest installerManifest)
   at Microsoft.WingetCreateCLI.PromptHelper.PromptPropertiesWithMenu[T](T model, String exitMenuWord, String modelName)
   at Microsoft.WingetCreateCLI.Commands.UpdateCommand.DisplayManifestsAsMenuSelection(Manifests manifests)
   at Microsoft.WingetCreateCLI.Commands.UpdateCommand.UpdateManifestsInteractively(Manifests manifests)
   at Microsoft.WingetCreateCLI.Commands.UpdateCommand.ExecuteManifestUpdate(List`1 latestManifestContent, CommandExecutedEvent commandEvent)
   at Microsoft.WingetCreateCLI.Commands.UpdateCommand.Execute()
   at Microsoft.WingetCreateCLI.Program.Main(String[] args)

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