Make save & restore cache actual programs available in the test env
A
Autarch
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
Merged in a post:
Access and update cache via the API or CLI
Aaron Jensen
Ability to manipulate saving and loading cache internally in the job would allow for dynamic changes to cache directories which is beneficial in creating Orbs that assist in making the cache process easier by allowing cache paths to be parameterized.
CCI-I-864
A
Autarch
I proposed something very similar in https://ideas.circleci.com/ideas/CCI-I-1198
CircleCI folks, feel free to merge these.