adaptlearning / adapt-cli

Command line and library interface for the Adapt Framework
https://community.adaptlearning.org/
25 stars 21 forks source link

Default to latest tag #125

Closed tomgreenfield closed 4 years ago

tomgreenfield commented 4 years ago

https://github.com/adaptlearning/adapt-cli/blob/2b667551ee2e58be98a16b13f7218643e5c2c095/lib/Constants.js#L16

Suggest this defaults to the latest tag (as per the authoring tool install script).

There have been issues cropping up recently where the unreleased framework wasn't playing ball with tagged plugins.

The only useful place for defaulting to master would be with the devinstall command.

tomgreenfield commented 4 years ago

Just to note that it'll need to be checked whether fetching the latest release via https://github.com/adaptlearning/adapt_framework/releases/latest or similar is suitable, or if we'd need to iterate through tags to get the highest version number.

chris-steele commented 4 years ago

Should be fixed in v2.1.11 - all I did was take the suggested code from adapt_authoring - worked a treat ;-)