<div dir="ltr">You can also simply clean to a specific step in the process as well which may help you out. It'll clean out every step from the end back to the step that you specify.<div><br></div><div>E.g. snapcraft clean --step pull</div><div><br></div><div><a href="http://snapcraft.io/docs/reference/snapcraft-command#clean">http://snapcraft.io/docs/reference/snapcraft-command#clean</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 8, 2017 at 2:20 PM, Dalton <span dir="ltr"><<a href="mailto:me@daltondurst.com" target="_blank">me@daltondurst.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<div><br></div><div>Is there any way to get Snapcraft to pull the git source of a kernel at every build without cleaning the entire build directory? </div><div><br></div><div>Currently, if I make a change to my kernel source (I'm using a source in '.' in my case) then commit it, Snapcraft simply ignores the changes since it has pulled the source previously, printing 'Skipping pull kernel (already ran)'. I have to run 'snapcraft clean' in order to get it to pull the (local) source again. Snapcraft then goes on and redownloads 'os.snap', a 60MB file, again. On a fast connection, this is no problem. I'm on a slightly slower connection that also has a data cap, so this is a waste of both time and bits.</div><div><br></div><div>It seems like there are two ways to avoid this: A way to cache os.snap locally, or a way to have Snapcraft run 'git pull' to grab source changes into its working directory. Is either possible right now?</div><div><br></div><div>If it helps, my current snapcraft.yaml can be found here: <a href="http://paste.ubuntu.com/23766072/" target="_blank">http://paste.ubuntu.com/<wbr>23766072/</a></div><div><br></div><div>(Yes, I understand that a 3.4 kernel probably won't run Snaps very well, if at all)</div><div><br></div><div>Thanks,</div><div>Dalton</div><br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div>