We don’t want to scan the whole tree just to find out that a single text file has changed since the last build.
Well, when the tree contains a binary that needs to be packaged, and the binary has changed then I would expect the latest version to be put into the snap that gets built. But if the goal of
snapcraft is to build from source, and I’m abusing the
dump plugin because
stack is not supported as a build tool, then there’s no much I can complain about.
Note you can already do that today. It’s just a bit of a cryptic command, but we’re working to make that nicer:
Currently I run:
snapcraft clean torxakis-bin
every time I build my project (which is a PITA if I forget to do it because I would be releasing an outdated package). Would that command also do the job (or is it doing unnecessary work as well?).