Say I have a snapcraft.yaml file with two parts, “core” and “config”. The “core” part comprises my source code and takes 30 minutes to build from scratch. The “config” part comprises some custom command wrapper files.
In the latest version of snapcraft (2.43.1), I am now alerted if the “core” part is stale and it requires me to clean it before performing a new build. Older versions of snapcraft didn’t detect that the “core” part was stale, so I could choose not to clean it if I wanted to just to build the “config” part. Now, I have to clean the “core” part and wait 30 minutes just so that I can test a small config change. Is there anyway around this now?
I suppose I could copy the “core” source files into an intermediate folder that snapcraft uses only when I want to build it, but that seems like a bit of a hack.