repology / repology-updater

Repology backend service to update repository and package data
https://repology.org
GNU General Public License v3.0
502 stars 177 forks source link

Winget repository log shows YAML errors and warnings - how to fix? #1344

Closed luzpaz closed 1 year ago

luzpaz commented 1 year ago

How can some of these errors and warnings be remedied ?

For example:

2023-07-30 07:37:21 manifests/t/TeamSophia/SophiApp/1.0.97: ERROR: parsing failed (fatal): ValueError: month must be in 1..12 2023-07-30 07:37:21 ERROR: ValueError: month must be in 1..12

The indicated manifest is at https://github.com/microsoft/winget-pkgs/blob/master/manifests/t/TeamSophia/SophiApp/1.0.97/TeamSophia.SophiApp.locale.en-US.yaml

But I don't see the issue ? Please clarrify. Also what are the floating point warnings?

ref: https://repology.org/log/1181371

2023-07-30 07:32:10   manifests/b/behringer/XAIREdit/1.7: WARNING: PackageVersion "1.7" is a floating point, should be quoted in YAML
2023-07-30 07:32:12   manifests/b/Baidu/SwanIDE/4.7.1: ERROR: YAML error in Baidu.SwanIDE.installer.yaml at line 16: found character '\t' that cannot start any token
2023-07-30 07:32:12   manifests/b/Baidu/SwanIDE/4.1.1: ERROR: YAML error in Baidu.SwanIDE.installer.yaml at line 16: found character '\t' that cannot start any token
2023-07-30 07:32:12   manifests/b/Baidu/BaiduWenku/1.2.7: WARNING: link: "https://edu-wenku.bdimg.com/v1/pcclient/upgrade/百度文库 Setup 1.2.7.exe" contains whitespace
2023-07-30 07:32:13   manifests/b/Bluemaxima/NewgroundsAuditorium/2.0: WARNING: PackageVersion "2.0" is a floating point, should be quoted in YAML
2023-07-30 07:32:13   manifests/b/ButterflyEffect/Monica/1.1.3: WARNING: link: "https://download.monica.im/Monica Setup 1.1.3.exe" contains whitespace
2023-07-30 07:32:14   manifests/b/BrunoBanelli/PCI-Z/2.0: WARNING: PackageVersion "2.0" is a floating point, should be quoted in YAML
2023-07-30 07:32:15   manifests/b/BYOND/BYOND/514.1578: WARNING: PackageVersion "514.1578" is a floating point, should be quoted in YAML
2023-07-30 07:32:18   manifests/b/Badlion/BadlionClient/3.16.0: WARNING: link: "https://client-updates-cdn77.badlion.net/Badlion Client Setup 3.16.0.exe" contains whitespace
2023-07-30 07:32:19   manifests/b/Badlion/BadlionClient/3.16.1: WARNING: link: "https://client-updates-cdn77.badlion.net/Badlion Client Setup 3.16.1.exe" contains whitespace
2023-07-30 07:32:20   manifests/b/Billfish/Billfish/2.6.0.11: ERROR: YAML error in Billfish.Billfish.installer.yaml at line 13: found character '\t' that cannot start any token
2023-07-30 07:32:20   manifests/b/bshuzhang/PPLink/11.0.2: WARNING: link: "https://www.ppzhilian.com/download/win/pp直连 Setup 11.0.2.exe" contains whitespace
2023-07-30 07:32:20   manifests/b/bshuzhang/PPLink/11.0.2: WARNING: link: "https://www.ppzhilian.com/download/win/pp直连 Setup 11.0.2.exe" contains whitespace
2023-07-30 07:32:20   manifests/b/bshuzhang/PPLink/10.4.0: WARNING: link: "https://www.ppzhilian.com/download/win/pp直连 Setup 10.4.0.exe" contains whitespace
2023-07-30 07:32:20   manifests/b/bshuzhang/PPLink/10.4.0: WARNING: link: "https://www.ppzhilian.com/download/win/pp直连 Setup 10.4.0.exe" contains whitespace
2023-07-30 07:32:20   manifests/b/bshuzhang/PPLink/11.1.0: WARNING: link: "https://www.ppzhilian.com/download/win/pp直连 Setup 11.1.0.exe" contains whitespace
2023-07-30 07:32:20   manifests/b/bshuzhang/PPLink/11.1.0: WARNING: link: "https://www.ppzhilian.com/download/win/pp直连 Setup 11.1.0.exe" contains whitespace
2023-07-30 07:32:21   manifests/b/BrightSign/BrightAuthorConfigurator/1.02: WARNING: PackageVersion "1.02" is a floating point, should be quoted in YAML
2023-07-30 07:32:22   manifests/b/BitRecover/WindowsLiveMailConverter/8.0: WARNING: PackageVersion "8.0" is a floating point, should be quoted in YAML
2023-07-30 07:32:22   manifests/b/BitRecover/AadhaarCardPasswordRemover/3.0: WARNING: PackageVersion "3.0" is a floating point, should be quoted in YAML
2023-07-30 07:32:22   manifests/b/BinaryMark/BatchPhotoFace/5.6: WARNING: PackageVersion "5.6" is a floating point, should be quoted in YAML
2023-07-30 07:32:22   manifests/b/BinaryMark/BatchImageEnhancer/5.6: WARNING: PackageVersion "5.6" is a floating point, should be quoted in YAML
...
AMDmi3 commented 1 year ago

There's a dqte in https://github.com/microsoft/winget-pkgs/blob/master/manifests/t/TeamSophia/SophiApp/1.0.97/TeamSophia.SophiApp.installer.yaml, and it's invalid.

Also what are the floating point warnings?

In yaml, 1.1 is a floating point value, "1.1" and 1.1.1 are strings. Versions are not floating point values, so X.Y must always be quoted.

luzpaz commented 1 year ago

Thanks!