microsoft / microsoft/winget-create

wingetcreate new asks for same info twice. PackageIdentifier, Publisher and PackageName

Open
#589 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C#
Stars
651
Forks
114
Avg merge
7h 52m
Merged PRs (30d)
3

Description

Brief description of your issue

wingetcreate new asks for same info twice. PackageIdentifier, Publisher and PackageName

It only needs to ask for the publisher name and the package name and then it can make the PackageIdentifier

Steps to reproduce
  1. Run wingetcreate new
  2. Paste installerURL
  3. You are prompted for the PackageIdentifier (which should be in the format .
  4. Answer a couple more prompts
  5. You are prompted for the Publisher (which you already typed in when you were prompted for the PackageIdentifier)
  6. You are prompted for the PackageName (which you already typed in when you were prompted for the PackageIdentifier)
Expected behavior
  1. Run wingetcreate new
  2. Paste installerURL
  3. You are prompted for the PackageName
  4. You are prompted for the Publisher
  5. wingetcreate carries on as normal

Note: You are not prompted for the PackageIdentifier since you already gave information on who is the Publisher and the PackageName

Actual behavior

Wingetcreate new asks for the same information twice

Environment
Copyright (c) Microsoft Corporation. All rights reserved.

Operating System: Microsoft Windows NT 10.0.19045.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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the wingetcreate new command entry point and follow the prompts for PackageIdentifier, Publisher, and PackageName. Run wingetcreate new with an installer URL to reproduce the duplicate questions. Done means Publisher and PackageName are requested once and the PackageIdentifier is derived without another prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.