mise icon indicating copy to clipboard operation
mise copied to clipboard

Support for bin/latest-stable

Open jdx opened this issue 1 year ago • 3 comments

I didn't add this yet since I couldn't find a plugin that actually had one, but golang does so I can use that as a reference.

jdx avatar Jan 27 '23 23:01 jdx

This would be useful for a shorthand repository. I would use the commit hashes as versions, and using this you could get the latest commit on head.

Hypnotist1148 avatar Feb 22 '23 18:02 Hypnotist1148

can you explain more? perhaps with pseudo commands? I'm not seeing how this would be used as you described.

jdx avatar Feb 22 '23 19:02 jdx

can you explain more? perhaps with pseudo commands? I'm not seeing how this would be used as you described.

Sure, the output of rtx latest {plugin}" should output the latest runtime version for a plugin as i understand.

In the latest-stable script I'd get the latest git commit for the shorthand repo from master.

...
echo "$(git log HEAD..origin/master -n 1 --format="%H")"

Hypnotist1148 avatar Feb 22 '23 20:02 Hypnotist1148

@kachick mentioned in discord that this is a problem for asdf-zigmod since it has "-r56" style versions that rtx won't pick as the latest so we likely need latest-stable

jdx avatar Mar 08 '23 18:03 jdx