pn-santos commented on PR #392: URL: https://github.com/apache/maven-build-cache-extension/pull/392#issuecomment-3373921303
To add a bit of context (since I opened https://github.com/apache/maven-build-cache-extension/issues/214 to begin with), I was using the `maven-build-cache-extension` in a project that generated a docker image (using https://github.com/fabric8io/docker-maven-plugin) which in practice meant assembling various files under `target/docker` which are then used by `docker-maven-plugin` to create the image in the local docker container. The issue arose because some resource files (bash scripts) that had exec permissions and the `Dockerfile` was written _expecting_ those files to be executable. On a clean build it would work. But once `target/docker` was cached, it would no longer work since all the files with exec permissions would no longer have them. We did work around this by using `--chmod` with `COPY` within the `Dockerfile` itself (probably how it _should_ be done anyway) but I still thought it was worth reporting since it _is_ a behaviour that makes the "build-from-cache" not be the same (output-wise) from the "build-from-scratch" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
