I have a large repo that I am caching in a build step using a standard docker executor.
The cache restores with no problem in other docker executors in different jobs.
When trying to restore the same cache in a machine executor, I get a permission error:
Downloading cache archive... Validating cache... Unarchiving cache... tar: root/project/.git: Cannot mkdir: Permission denied #..lots of the same error elided
Obviously I can just do a fresh checkout and move on but I’d like to take advantage of caching in all build jobs.