Skip to content

feat: identity new/import now has a --force flag#2141

Merged
mergify[bot] merged 7 commits intomasterfrom
identity-force-flag
Apr 21, 2022
Merged

feat: identity new/import now has a --force flag#2141
mergify[bot] merged 7 commits intomasterfrom
identity-force-flag

Conversation

@viviveevee
Copy link
Copy Markdown
Contributor

@viviveevee viviveevee commented Apr 20, 2022

Description

Adds the flag --force to dfx identity new and dfx identity import.

Closes #1040

How Has This Been Tested?

e2e tests added.

Checklist:

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

Comment thread e2e/tests-dfx/identity_command.bash
Comment thread e2e/tests-dfx/identity_command.bash
@ghost ghost added the automerge-squash label Apr 21, 2022
@mergify mergify Bot merged commit 128a20f into master Apr 21, 2022
@mergify mergify Bot deleted the identity-force-flag branch April 21, 2022 20:08
mergify Bot pushed a commit that referenced this pull request Jan 10, 2023
#2860)

#2141 introduced a special case to temporarily switch to the anonymous identity if the currently selected identity gets re-created with `dfx identity new --force`. The logic to switch to `anonymous` and back to the newly created identity mistakenly triggers every time. `dfx identity new --force` isn’t supposed to automatically switch to the newly created identity.

Fixes [SDK-911](https://dfinity.atlassian.net/browse/SDK-911)
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.

dfx identity should have a force flag

1 participant