PackageIdentifier - Input does not match the valid format for this field
还没有人认领这个 Issue。
评估
调研方向
使用报告中的 GitHub 安装程序 URL 和 wingetcreate new 复现该流程。然后检查第 8 行所引用的 schemas/JSON/manifests/v1.6.0/manifest.singleton.1.6.0.json 正则表达式,并根据建议的 PackageIdentifier 验证每个部分的长度约束。完成的标准是确认该验证是否符合预期,或者错误是否需要更清晰的响应。
由索引模型根据 Issue 内容生成。
描述
Brief description of your issue
Hey folks,
When running wingetcreate new and supplying an installer URL from a release on GitHub, then trying to accept the parsed PackageIdentifier name OR typing it in manually, I get the following error:
"Input does not match the valid format pattern for this field".
I did some searching and I'm seeing a ton of packages that have exactly this format of <author>.<package-name>, so I'm not sure what the problem is exactly.
Steps to reproduce
- Run
wingetcreate new - When prompted for InstallerUrls, enter: https://github.com/jdalley/command-palette-toggle-hdr/releases/download/v0.0.1/jdalley.ToggleHDRExtensionforCommandPalette_0.0.1.0_x64__ygjv9tpcda3x6.msix and hit enter (twice).
- Hit enter to accept suggested/parsed value of
jdalley.ToggleHDRExtensionforCommandPaletteor manually typejdalley.ToggleHDRExtensionforCommandPaletteand hit enter. - Get error
Expected behavior
Be allowed to proceed to the next step after entering a correct PackageIdentifier value.
Actual behavior
Not able to proceed to the next step after entering a correct PackageIdentifier value.
Environment
Windows Package Manager Manifest Creator v1.9.4.0
Copyright (c) Microsoft Corporation. All rights reserved.
Operating System: Microsoft Windows NT 10.0.26100.0
System Architecture: X64
Tried on both Warp terminal (Powershell 7.5.1) and Windows Terminal (Powershell 7.5.1)
Update
It turns out I didn't consider the property section length, and the following regex has enlightened me to the fact that the max length per-section is 32 characters. Shortening it does in fact fix this.
- 主要语言
- C#
- 星标
- 658
- 派生
- 117
- 平均合并
- 6 小时 31 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/winget-create 的其他 Issue
-
Remove `--prtitle` from Usage commands可能已有人在做 @reginaldalfret 于 19 天前认领。 未关闭Issue-Docs Needs-Triage
难度 2/5 1-3 小时 新手友好度 72/100
microsoft/winget-create#705 ·
-
Issue-Feature Needs-Triage
难度 2/5 1-3 小时 新手友好度 65/100
microsoft/winget-create#680 ·
-
Issue-Bug Needs-Triage
难度 3/5 1-2 天 新手友好度 68/100
microsoft/winget-create#710 · 1 个 reaction ·
-
Needs-Triage
难度 3/5 1-2 天 新手友好度 68/100
microsoft/winget-create#706 · 1 个 reaction ·
-
Issue-Feature Needs-Triage
难度 4/5 3-5 天 新手友好度 52/100
microsoft/winget-create#701 ·
查看 microsoft/winget-create 的全部 Issue
相似的 Issue
-
track:release
难度 2/5 1-3 小时 新手友好度 80/100
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK status可能已有人在做 @leizhiyuan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
apache/rocketmq-clients#1465 ·
维护者通常 2 天内回复
-
fix(testing): HeadlessTerminal disposes services synchronously可能已有人在做 @zidad 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 69/100
RazorConsole/RazorConsole#388 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 72/100
starlinghq/starling#209 ·
维护者通常 1 天内回复