Right now these are special cased steps, and they have very little flexibility. For example, I can't even refer to basic env vars that are only available in process, like
$HOME
, in these steps. You could try to add bits of flexibility piecemeal, but a much simpler approach would be to also support caching via explicit programs available in the build container/machine/etc., so I could write something like this:
circleci-save-cache -path $HOME/foo -key "foo-bar-$( circleci-cache-key-checksum $HOME/bar )"
CCI-I-1198