getporter / porter

Porter enables you to package your application artifact, client tools, configuration and deployment logic together as an installer that you can distribute, and install with a single command.
https://porter.sh
Apache License 2.0
1.2k stars 199 forks source link

Added validation if someone specifies a version on a bundle #3148

Open dgannon991 opened 1 month ago

dgannon991 commented 1 month ago

What does this change

Added a check on version numbers if specified in your porter YAML

What issue does it fix

Delivers towards #3136

Notes for the reviewer

This is just a draft to get some feedback. I intend to refactor the Lint() function and add some unit tests, but I wanted to check if I'd gone down the right route first :)

dgannon991 commented 1 month ago

I've added some tests and done a small refactor on the bottom of Lint(). Let me know if we want to break further parts of the function out!