abcxyz / abc

Apache License 2.0
12 stars 3 forks source link

"already up to date" detection should account for input changes #645

Closed drevell closed 3 weeks ago

drevell commented 1 month ago

Currently, abc upgrade will return no-op if the template dirhash is unchanged. But this neglects one of the common uses of abc upgrade, which is to re-run a template with different inputs (like --input=user=alice@gmail.com -> --input=user=bob@gmail.com.

We should smarten abc upgrade so it will be no-op iff the template dirhash is unchanged and all template inputs are unchanged.

The current workaround for this is for the user to provide the --continue-if-current flag. But this has downsides:

drevell commented 3 weeks ago

Fixed in #648