DFX new feature request

I’m currently doing

dfx canister install --yes clown_mining_backend -m upgrade

from a script. Which feels inherently unsafe(but I do have snapshots made prior to upgrade)
What I would really like to see is

dfx canister install --confirm-candid-change clown_mining_backend -m upgrade

We need some safety guarantees, generic --yes is a very unsafe thing in normal flow

1 Like

Anyone alive out here?..

Adding this here since it’s related to the upgrade DX.

Right now, when deploying a canister if there are any breaking changes in the interface (API) or state (stable variables), the candid output only provides the first breaking API or state change, instead of everything (if there are multiple APIs or stable variables that changed). The warning then isn’t of much help if the developer has made multiple changes.

A few helpful improvements to the DX might be:

  • Output/warn all candid detected changes to APIs & state (stable variables)
  • Provide an easier to digest overview of the changes that were made (think color coded git diff with +/-)
2 Likes

yup, this is -very- confusing… I see some weird stuff displayed which often makes no sence
should either just be a yes/no(breaking candid change) or show full list of breaking changes