To make sure that changes to unpinned versions are reflected in docker image during subsequent builds, we need to create exact.repos file containing pinned package versions. This adds about 1-2 minutes to the build time.
I have verified that when no new commits are added to downstream repos, then earthly re-uses cache. Conversely it pulls new changes when they are available and re-builds the workspace.
This commit addresses https://github.com/space-ros/docker/issues/134 and adds description of intermediate earthly tasks to the readme.
Solution description
To make sure that changes to unpinned versions are reflected in docker image during subsequent builds, we need to create
exact.repos
file containing pinned package versions. This adds about 1-2 minutes to the build time. I have verified that when no new commits are added to downstream repos, then earthly re-uses cache. Conversely it pulls new changes when they are available and re-builds the workspace.