I have tons of issues with mkdir all the time.
I have this line in my config.yml:
- run: name: Save Docker image layer cache command: | mkdir -p caches docker save -o /caches/app.tar app
It worked fine for a long time but suddenly I am seeing this:
failed to save image: unable to validate output path: directory "/caches" does not exist Exited with code 1
Why isn’t mkdir -p caches working?
I had the same problem with mkdir -p test-results/coverage test-results/nose
The directories wouldn’t be found with mkdir and I ended up having to just put a .gitkeep in those folders.
But /caches/ did work until recently. Overall I really don’t get why mkdir doesn’t seem to actually create directories.