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

feat: dfx start doesn't require --clean when changing replica versions or options #3777

Merged
merged 11 commits into from
May 31, 2024

Conversation

ericswanson-dfinity
Copy link
Member

@ericswanson-dfinity ericswanson-dfinity commented May 29, 2024

Description

For the shared local network, dfx now stores replica state in a subdirectory, where the subdirectory name is a hash of the replica version and options. This means it will no longer be necessary to pass --clean when switching between dfx versions.

dfx will still reset canister ids when it detects that the local network has changed. But it will now be possible to do something like work with projects A, B, and C with dfx 0.22.0, and projects E and F with dfx 0.23.0, with dfx +0.22.0 start / dfx +0.23.0 start, without --clean, in between them.

Fixes https://dfinity.atlassian.net/browse/SDK-1638

How Has This Been Tested?

Added e2e tests

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@ericswanson-dfinity ericswanson-dfinity requested a review from a team as a code owner May 30, 2024 18:14
@dfx-json dfx-json removed request for a team and chenyan-dfinity May 30, 2024 20:01
@ericswanson-dfinity ericswanson-dfinity enabled auto-merge (squash) May 31, 2024 14:40
auto-merge was automatically disabled May 31, 2024 14:58

Pull Request is not mergeable

@dfx-json dfx-json enabled auto-merge (squash) May 31, 2024 17:13
auto-merge was automatically disabled May 31, 2024 17:16

Pull Request is not mergeable

@dfx-json dfx-json merged commit 455de36 into master May 31, 2024
285 checks passed
@dfx-json dfx-json deleted the ens/sdk-1638-less-dfx-start-clean branch May 31, 2024 17:20
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