Outcome of toSystem is not checked against environment changing between runs
#23
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
internal/systempartial reversion makes assumption that the outcomes being rolled back is identical. This requirestoSystemto reach the exact same outcome every run for any configuration. This is true as long as$TMPDIRand$XDG_RUNTIME_DIRdoes not change between these runs.This potential divergence can be mitigated by encoding
internal/envoutcome in the state store, and recomputetoSystemoutcome if it differs. Such an implementation comes with non-negligible overhead though.Since the priv side environment is considered trusted input, If such overhead is deemed unacceptable, this behaviour should be documented instead.