Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade DFX to 0.22.0 #79

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Upgrade DFX to 0.22.0 #79

merged 2 commits into from
Sep 19, 2024

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Sep 18, 2024

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)

@anchpop anchpop marked this pull request as ready for review September 19, 2024 03:29
@anchpop anchpop requested review from mraszyk and a team as code owners September 19, 2024 03:29
constants.sh Outdated Show resolved Hide resolved
constants.sh Outdated Show resolved Hide resolved
@mraszyk
Copy link
Collaborator

mraszyk commented Sep 19, 2024

(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).

REGISTRY_FOUND=$(find "$BASE_PATH" -type d -name ic_registry_local_store 2>/dev/null)

if [ $(echo "$REGISTRY_FOUND" | wc -l) -gt 1 ]; then
echo "Error: Multiple ic_registry_local_store directories found"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Error: Multiple ic_registry_local_store directories found"
echo "Error: Multiple ic_registry_local_store directories found; please start your local replica using `dfx start --clean`"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I thought it wouldn't let me merge until I resolved this

@anchpop anchpop merged commit c723389 into main Sep 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants