defang icon indicating copy to clipboard operation
defang copied to clipboard

npx defang@<version> fails to get the version

Open nullfunc opened this issue 1 year ago • 1 comments

npx defang@ ... starting with version 0.5.26 we cannot get a specific version.

Reason: the cli.js from 0.5.26 will download the latest version if there is no installed binary regardless of the @version passed to npx. cli.js never gets @version info.

We should add a flag --use-version= (e.g. npx defang --use-version=0.5.26) when we want to use a specific version.

  • The downloaded binary should be tagged (the file could be renamed to include the version info) with the version it is
  • cli.js should look for the version installed locally before downloading

nullfunc avatar Jul 24 '24 20:07 nullfunc

Also would be useful to add to our shell script installer.

lionello avatar Jul 29 '24 18:07 lionello

Not important enough. Can use the alternative installers instead.

lionello avatar Sep 26 '24 21:09 lionello