-
Notifications
You must be signed in to change notification settings - Fork 88
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
chore: update dfx deploy
output
#4104
Conversation
"{} code for canister {}", | ||
install_mode_to_prompt(&mode), | ||
canister_id, | ||
let spinner = env.new_spinner( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't play well with the "ask for consent" and interactive parameter prompting in that can happen when installing a canister. To repro, for example:
$ dfx canister install --wasm /Users/ericswanson/d/sdk/e2e/assets/wasm/identity/main.wasm --mode reinstall react_rust_backend
⠁ Reinstalling code for canister react_rust_backend, with canister ID bkyz2-fmaaa-aaaaa-qaaaq-cai WARNING!
You are about to reinstall the react_rust_backend canister
This will OVERWRITE all the data and code in the canister.
YOU WILL LOSE ALL DATA IN THE CANISTER.
Do you want to proceed? yes/No
⠋ Reinstalling code for canister react_rust_backend, with canister ID bkyz2-fmaaa-aaaaa-qaaaq-cai
@@ -325,7 +329,7 @@ async fn install_canisters( | |||
no_asset_upgrade: bool, | |||
always_assist: bool, | |||
) -> DfxResult { | |||
info!(env.get_logger(), "Installing canisters..."); | |||
let spinner = env.new_spinner("Installing canisters...".into()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also conflicts with prompting about upgrades or for initialization arguments:
$ dfx deploy
...
⠂ Installing canisters...
⠁ Installing code for canister dd_backend, with canister ID br5f7-7uaaa-aaaaa-qaaca-cai
This canister requires an initialization argument.
Auto-completions: aaabbbccc, abc3, abc4, alice, alice_e2e, anonymous, bob, bob_e2e, dd_backend, dd_frontend, default, ed, iii, k3, kt2, kt4, mainnet,⠠ Installing canisters...
⠤ Installing code for canister dd_backend, with canister ID br5f7-7uaaa-aaaaa-qaaca-cai
SDK-1945