Open
Description
In the github action example there is the following somewhat quixotic line
apk --no-cache add tar
From what I can tell, without this, the post cache pre-commit step fails as it is trying to run
/bin/tar --posix -cf cache.tgz --exclude cache.tgz -P -C /__w/PaaPy-TF-ecr/PaaPy-TF-ecr --files-from manifest.txt -z
/bin/tar: unrecognized option: posix
BusyBox v1.3[5](https://github.com/.../actions/runs/11693148026/job/32564059333#step:10:5).0 (2022-11-19 10:13:10 UTC) multi-call binary.
which is happening because the version of tar
included with BusyBox doesn't support the --posix
option and therefore it pulls in the GNU one. That's confusing, but such is Linux.
What I don't get is why this needs to be done externally. As this seems to be necessary, couldn't that line just be moved into the Dockerfile and make things simpler for everyone using this? Is there some sort of downside I'm not seeing?