CircleCI-Public / circleci-cli-orb

Easily install and use the CircleCI CLI, on CircleCI
https://circleci.com/orbs/registry/orb/circleci/circleci-cli
MIT License
2 stars 11 forks source link

Version parameter on install job does nothing #13

Closed mattvanstone closed 1 year ago

mattvanstone commented 3 years ago

Orb version

0.1.9 and older

What happened

Specify an explicit version to install in the install job

  - circleci-cli/install:
      version: v0.1.15224

The job outputs that you want to install version v0.1.15224, but doesn't actually reference it in the install command. It just installs the latest

Selected version of CircleCI CLI is v0.1.15224
A different version of the CircleCI CLI is installed (Build Agent version: 1.0.72666-eaa68b41
Built: 2021-06-14T14:18:26+0000); updating it
Starting installation.
Installing CircleCI CLI v0.1.15338
Installing to /usr/local/bin
/usr/local/bin/circleci
CircleCI CLI version 0.1.15338+850f9ac (release) has been installed to /usr/local/bin/circleci

Expected behavior

When you specify a version for the install job, it should install that version.

yangchoo commented 1 year ago

Please fix this issue by reviewing and merging the linked PR.

This would provide a workaround to any breaking issues with the circleci-cli (e.g. https://github.com/CircleCI-Public/circleci-cli/issues/941).

There are orbs relying on this which are currently breaking.

yangchoo commented 1 year ago

@brivu Tagging you on the issue for visibility. The upstream bug has been resolved, but it'll be nice to get this in so that we'll have a workaround next time.

Thank you