flow-js-testing icon indicating copy to clipboard operation
flow-js-testing copied to clipboard

Investigate CLI updates which lead to emulator incompatibility

Open MaxStalker opened this issue 3 years ago • 4 comments

Details

CLI changes in 0.31.0 brought new flag --admin-port which broke the whole workflow for users of flow-js-testing. Later 0.31.1 should have been a simple update for Cadence dependency, but made things worse.

Progress

  • [ ] Check AccountAdded/AccountCreated hypothesis from #87
    • Revert to 0.30.0 and check that it works with previous codebase

MaxStalker avatar Feb 28 '22 14:02 MaxStalker

@MaxStalker Is there any reasonable way to downgrade CLI with Homebrew for M1 Macs? Brew seems to hold only the latest version.

adbario avatar Sep 18 '22 03:09 adbario

@adbario why do you want to downgrade ?

you can downgrade with install script:

For example:

sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)" -- v0.33.3

bluesign avatar Sep 18 '22 07:09 bluesign

@bluesign @MaxStalker There are quite a few issues with the latest flow-js-testing, but it's still alpha which makes it quite understandable. I'm not able to use the latest two versions at all, as both of them have different issues. Will do more testing on these today though.

So, while it's pretty unlikely, was thinking to see if downgrading the CLI makes any difference, and this topic seemed to be the best place to drop the question.

I believe the install script won't work on M1 Macs based on the docs. If I'm not wrong, on M1 Macs Homebrew is the only installation option, and they only allow you to set up 0.39.3 which is not even the latest version.


This is a great package, just needs a bit more maintenance. I will do my best to help whenever possible; got one PR pending already and also created type definitions for the main API functions.

Anyways, great work everyone 🚀

adbario avatar Sep 18 '22 10:09 adbario

Much appreciated @adbario!

gregsantos avatar Sep 19 '22 16:09 gregsantos