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

Fixing an issue with --import and dataDir at the same time #8048

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Dec 9, 2024

Description

When 'dataDir' and --import are used at the same time, the emulator would fail with 'Database already exists'. Now, we warn that data will be overwritten, prompt if we're in interactive mode, and then overwrite the dataDir.

Scenarios Tested

Manually tested the following cases and verified that they work as expected:

  • Interactive, both are set, accept prompt
  • Interactive, both are set, decline prompt
  • Noninteractive, both are set
  • Only --import is set
  • Only dataDir is set

@joehan joehan merged commit 89f1c8a into master Dec 9, 2024
44 of 46 checks passed
@joehan joehan deleted the jh-fix-import1 branch December 9, 2024 19:38
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.

2 participants