yonaskolb / Mint

A package manager that installs and runs executable Swift packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

daltonclaybrook opened this issue · comments

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?