infinitered / solidarity

Solidarity is an environment checker for project dependencies across multiple machines.
https://infinitered.github.io/solidarity/
MIT License
639 stars 48 forks source link

Latest version as Wanted Version #205

Open oximer opened 6 years ago

oximer commented 6 years ago

It's possible to configure Solidarity Options to have the latest version of a package as the wanted version.

{ "rule": "cli", "binary": "gam", "error": "Try npm install -g gam-cli", "semver": "latest", "error": "please install with brew install watchman" },

Something like this.

tabrindle commented 6 years ago

We don't currently have this to my knowledge, but it is an interesting idea!

This would require us to make a network call to a package manager to find the latest version, then check against semver of current.

A basic implementation might be easy, but I can see this scope creeping to every package manager ever.

@GantMan Got any input?

oximer commented 6 years ago

you can use

npm show package-name version

To check the version.

tabrindle commented 6 years ago

yes that would work - for npm.

with the current config object, I'm not sure there is a way for us to know this is a binary from npm.