How to install older versions of Cadence CLI using homebrew #4457
longquanzheng
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why
This may be necessary after users upgrade their CLI without upgrading the server, or install the latest CLI.
Using a new CLI with old server may run into error of
ClientVersionNotSupportedError
. See details https://stackoverflow.com/questions/68217385/what-is-clientversionnotsupportederror-and-how-to-resolve-it/68217386#68217386Also users may need to install older schemas.
Note that server always backward compatible to older CLI that it can support. So if you can upgrade server, you don't need to install old CLIs :)
How
History
to find the version that you want to install. Remember the version to make sure it's available. E.g.0.18.2
3.1: create a new local tap
brew tap-new $USER/local-cadence-workflow
Exact the formula of old version from homebrew/core into your local tap:
brew extract --version=0.18.2 cadence-workflow $USER/local-cadence-workflow
NOTE: replace
0.18.2
with the version that you want to install.Then install the local-cadence-workflow with version:
If you have installed new versions, you will see the errors:
If so you need to overwrite the links by the command:
Reference: https://cmichel.io/how-to-install-an-old-package-version-with-brew/
Beta Was this translation helpful? Give feedback.
All reactions