Open Trenly opened 3 years ago
The file path is an implementation detail of the community repo, I don't think it's supposed to be true of all scenarios you use a manifest in (winget will install from any folder as long as it finds enough data in the yaml files).
That does make sense, I did not consider that some people may not use winget-create. Although, if manifests are being validated, there is an extremely high likelihood it is for the public repository. Perhaps a warning would be beneficial? That way if a user is validating before a pull request they get warned about a mismatch (assuming the file path starts at ~/manifests) while still allowing those who are not working out of their manifests directory tree to continue validation
I would think, though, that the file names should still be checked in validation. Maybe a warning is appropriate for that also
Brief description of your issue
Steps to reproduce
Package.Name
change it toPackageTest.Name
Package.Name.installer.yml
change it toPackageTest.Name.installer.yml
Expected behavior
The validation should fail in two different places.
Actual behavior
The package is passing validation.
Additional Information
PR showing failures - https://github.com/microsoft/winget-pkgs/pull/19476 Commit 1 | Pipeline Fail 1 - filename Commit 2 | Pipeline Fail 2 - file path
Environment