dfinity / sns-testing

Testing SNS in local testing environment
Apache License 2.0
9 stars 12 forks source link

Upgrade DFX to 0.22.0 #79

Closed anchpop closed 6 days ago

anchpop commented 6 days ago

When upgrading DFX from v0.19.0 to v0.22.0, there was a change in where DFX stores the registry info, so I added a new place for sns-testing to look for it in. I tried it on my mac and on CI and it seems to work.

I left the other places it looked in case any of them are used in some circumstances, but I don't think they are for this version of DFX. (Perhaps they would be useful if someone wanted to use an old version of DFX though.) The dfx start docs say that:

dfx stores data for the shared local network in one of the following locations, depending on your operating system:

$HOME/.local/share/dfx/network/local (Linux) $HOME/Library/Application Support/org.dfinity.dfx/network/local (Macos)

mraszyk commented 6 days ago

(Perhaps they would be useful if someone wanted to use an old version of DFX though.)

That would only apply to the first candidate path .dfx/... since for the other two candidate paths, the find command would also succeed for older versions of DFX (although it was not needed back then).