microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.53k stars 1.39k forks source link

Winget Download Merged Yaml broken #4497

Closed futu9 closed 1 week ago

futu9 commented 1 month ago

Brief description of your issue

Hello, when i download a Package with more than 2 PackageLocale i get broken yamls merged in my download folder.

Steps to reproduce

Download a Package with more than 1 addional PackageLocale winget download TeamViewer.TeamViewer -e

ExamplePkgs TeamViewer.TeamViewer Microsoft.Terminal)

Expected behavior

A Yaml with working Syntax image

Actual behavior

A Yaml with broken Syntax broken_yaml

Environment

Windows: Windows.Desktop v10.0.22631.3593
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.22.11261.0
eabase commented 1 month ago

Could be a line ending problem, as the files looks identical.

yao-msft commented 2 weeks ago

I think it's missing the '-' before the package locale.