Just noting some observations for later:
- Edit the
.codecrafters/compile.shscript to addls -lah /tmp/codecrafters-build-redis-swiftand we can see the files that were modified:build.dbhas changedrelease.yamlhas changed
- Diffing these files might yield more insight into why this happens
- If we run swift build twice within
compile.sh, the second step is cached. So this definitely implies some kind of difference between the docker build environment and the final runtime env.- Within
compile.sh, usingmv /tmp/codecrafters-build-redis-swift /tmp/old && cp -R /tmp/old /tmp/codecrafters-build-redis-swifttriggers a rebuild - Within
compile.sh, usingmv /tmp/codecrafters-build-redis-swift /tmp/old && cp -p -R /tmp/old /tmp/codecrafters-build-redis-swiftdoes NOT trigger a rebuild
- Within