Swift language support

Just noting some observations for later:

  • Edit the .codecrafters/compile.sh script to add ls -lah /tmp/codecrafters-build-redis-swift and we can see the files that were modified:
    • build.db has changed
    • release.yaml has 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, using mv /tmp/codecrafters-build-redis-swift /tmp/old && cp -R /tmp/old /tmp/codecrafters-build-redis-swift triggers a rebuild
    • Within compile.sh, using mv /tmp/codecrafters-build-redis-swift /tmp/old && cp -p -R /tmp/old /tmp/codecrafters-build-redis-swift does NOT trigger a rebuild