You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when you run for example chainloop att init --workflow my-wf --contract my-contract ... what happens is
1 - a new workflow called my-wf is created (if it doesn't exist) associated with the contract my-contract
2 - a new run is performed
This means that if you after the first run, you provide another contract name chainloop att init --workflow my-wf --contract contract-2, the first contract (my-contract will be used, in other words, the provided contract-2 will be ignored, which was reported as unexpected behavior
The text was updated successfully, but these errors were encountered:
from top of my head we have two options once you run att init after the workflow was created
1 - if the contract you provide with the flag --contract is different than the one from the existing workflow fail the attestation telling the user to change it or
2 - if you provide --contract, make sure to swap it if needed.
is too much a side effect in my opinion. Could we just warn the user that --contract will be ignored if the workflow already exists? Another option is to change the option to something more meaningful for this specific case, like --initial-contract or similar
when you run for example
chainloop att init --workflow my-wf --contract my-contract ...
what happens is1 - a new workflow called
my-wf
is created (if it doesn't exist) associated with the contractmy-contract
2 - a new run is performed
This means that if you after the first run, you provide another contract name
chainloop att init --workflow my-wf --contract contract-2
, the first contract (my-contract
will be used, in other words, the providedcontract-2
will be ignored, which was reported as unexpected behaviorThe text was updated successfully, but these errors were encountered: