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

chore: update dfx deploy output #4104

Merged
merged 10 commits into from
Feb 11, 2025
Merged

Conversation

adamspofford-dfinity
Copy link
Contributor

@adamspofford-dfinity adamspofford-dfinity marked this pull request as ready for review February 7, 2025 20:46
@adamspofford-dfinity adamspofford-dfinity requested a review from a team as a code owner February 7, 2025 20:46
"{} code for canister {}",
install_mode_to_prompt(&mode),
canister_id,
let spinner = env.new_spinner(

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());

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  

@adamspofford-dfinity adamspofford-dfinity enabled auto-merge (squash) February 11, 2025 12:28
@adamspofford-dfinity adamspofford-dfinity merged commit 6931d1e into master Feb 11, 2025
297 checks passed
@adamspofford-dfinity adamspofford-dfinity deleted the spofford/deploy-output branch February 11, 2025 13:41
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