volta icon indicating copy to clipboard operation
volta copied to clipboard

Command to show which versions are available in the remote repo

Open charlespierce opened this issue 6 years ago • 7 comments

Suggested in #569: A command, analogous to n ls-remote that will show which versions of a given tool are available in the remote repository. We can likely take a version parameter as well, and resolve all matches (up to some display limit), so that users can see what is available for a given version range:

$ volta resolve node@lts
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

charlespierce avatar Oct 17 '19 00:10 charlespierce

This feels like a pretty important feature to have, or is there a good workaround already that people are using?

mo avatar Nov 02 '21 06:11 mo

This feels like a pretty important feature to have, or is there a good workaround already that people are using?

I use npx n lsr or npx n lsr engine. 😅

vansteki avatar Dec 13 '21 13:12 vansteki

For Node, at least, It looks like the JSON versions index is already being cached to $VOLTA_HOME/cache/node/index.json. Is this cache only updated when a version of node is requested to be fetched and that version doesn't exist in the cache?

jsejcksn avatar Feb 23 '22 02:02 jsejcksn

It's obvious, but, we already have public api's how:

https://api.github.com/repos/npm/cli/tags https://api.github.com/repos/npm/cli/releases https://registry.npmjs.org/npm

Maybe could be used for remote versions for tools. (i really dont know if the problem is where finding, but it's an idea)

MauMuller avatar Aug 30 '23 00:08 MauMuller

I want it too.

tecsoc avatar Nov 05 '23 01:11 tecsoc