Triggering a re-build without re-downloading the core system

Hi folks,

When I run snapcraft there are several stages:

First snapcraft downloads the packages it needs to build the code

Then snapcraft connects to the git repo and pulls down the source code

etc etc

Is there a snapcraft clean command which can take me back to just the bit where snapcraft connects to the git repo and pulls the source? I’d like to save the time of downloading all the dependencies, which makes the process of iterating a snapcraft build quite slow for me.


Seb James

Have you tried putting all the build-packages and stag-packages into a single part separate from what you are trying to build, then ordering your part to build/checkout after that package-only part?

No, I wasn’t aware that you could do that (I’m a first-timer). I’ll give it a go.