Is the (possible) running of 01_base_install.sh more than once deliberate? If so, then I’m curious why we ever do that? Is it just for the DANGER_RUN_CI_ON_HOST
path or is there another use?
It should only install once (otherwise there will be issues). Yes, it is for DANGER_RUN_CI_ON_HOST
.
If not then it seems like we could just mark install as done when building the image, something like this…
lgtm. Could rename the file to /ci_base_install_done
to include the ci prefix?
Does this not mean that it requires the actual .git directory to be mounted for the refs, meaning git init
wouldn’t work in that case?
Just for printing the diff, as long as the repo commits to the same tree (or even the staging index is the same), it should work. I see why you opted for copying .git
, as it is a bit more future-proof and less confusing, given that the commit id also ends up in the binary or may otherwise be printed in the ci script? No strong opinion on how to fix it, though.