2.3 KiB
Troubleshooting Errors
Many issues can be caught before submitting your PR by following these steps:
-
Validate the manifest file: Run:
winget validate <path-to-the-manifest> -
Install the manifest locally: This verifies the Sha256 Hash and checks if the application installs silently (without human interaction). Run:
winget install --manifest <path-to-the-manifest>orwinget install -m <path-to-the-manifest>
If these steps pass, here are some troubleshooting tips:
Manifest-Validation-Error
Manifest validation errors indicate a problem with the manifest file. Validate the manifests before submission:
winget validate <path-to-the-manifest>
For documentation on the manifest specification, see the manifest schema.
Common Mistakes:
- Publisher folder and application name folder:
Ensure they match the
PackageIdentifierof the manifest. - Typos in the filename:
Filenames must match the
PackageIdentifier.
Important
PackageIdentifieris case-sensitive, as are the manifest path and filename.
- PackageIdentifier:
<publisher>.<name> - Manifest Path:
<first-letter-of-the-publisher>\<publisher>\<name>\<version> - Filenames:
- Installer:
<PackageIdentifier>.installer.yaml - Locale:
<PackageIdentifier>.locale.<language-code>.yaml - Version:
<PackageIdentifier>.yaml
- Installer:
Binary-Validation-Error
Binary validation errors indicate the installer failed static analysis.
Common Causes:
- Sha256 HASH mismatch:
Run:
winget hash <installer>to generate the correct hash. - Invalid URL: Ensure the installer URL is publicly available and valid.
- Malware detection: If the installer is flagged as malware, submit it to the defender team for analysis as a potential false positive.
SmartScreen-Validation-Error
Windows Defender SmartScreen validation errors indicate the URL provided has a bad reputation.
Internal-Error
Internal errors indicate a service issue. Microsoft will investigate and pursue a fix. For a list of known issues, see our repository issues.