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

dfx deploy halts when running npm run generate using a protected identity #2872

Closed
domwoe opened this issue Jan 12, 2023 · 1 comment · Fixed by #2896
Closed

dfx deploy halts when running npm run generate using a protected identity #2872

domwoe opened this issue Jan 12, 2023 · 1 comment · Fixed by #2896
Labels
accepted This issue/discussion has been promoted to an internal ticket and was added to the backlog. bug Something isn't working triaged

Comments

@domwoe
Copy link
Member

domwoe commented Jan 12, 2023

I tried the following:

dfx deploy with password protected identity

I expected to see this happen: explanation

Successful deployment

Instead, this happened: explanation

Halts with Building frontend...

Reason:

You need to enter the passphrase when running npm run generate .

@domwoe domwoe added the needs-triage This ticket needs investigation. label Jan 12, 2023
@domwoe domwoe changed the title dfx deploy halts when running npm run build using a protected identity dfx deploy halts when running npm run generate using a protected identity Jan 12, 2023
@sesi200
Copy link
Contributor

sesi200 commented Jan 13, 2023

Can reproduce it easily. Internal ticket

Issue also reported on the forum.

Workaround:

  • edit package.json
  • find field scripts.generate
  • replace dfx generate <some canister name> with dfx --identity anonymous generate <some canister name>

@sesi200 sesi200 added bug Something isn't working triaged accepted This issue/discussion has been promoted to an internal ticket and was added to the backlog. and removed needs-triage This ticket needs investigation. labels Jan 13, 2023
@mergify mergify bot closed this as completed in #2896 Jan 19, 2023
mergify bot pushed a commit that referenced this issue Jan 19, 2023
This changes `dfx generate` to not require the current identity, as it does not use it but does use the rest of the AgentEnvironment machinery. 

Fixes #2872, SDK-916
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue/discussion has been promoted to an internal ticket and was added to the backlog. bug Something isn't working triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants