yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.26k stars 122 forks source link

Question: What's the best way to tell if you have the wrong version of a package? #209

Open daltonclaybrook opened 3 years ago

daltonclaybrook commented 3 years ago

I'm interested in finding a way to automate the task of checking whether your installed dependencies match the versions in your Mintfile. My team uses a script to validate that your environment is configured correctly before performing other tasks, and rather than hard-coding package versions in this script, it would be nice to just ask mint if the versions are correct. One idea would be to simply run mint bootstrap --link from the script, but I'd rather take the approach of failing and providing a clear error message. What's the best way to achieve this today?