← Back to issue list

snapcraft.yaml needs to make all stages dirty (was: the can't add file without recreating entire package)

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1477904
Type
issue
State
closed
Author
~ories
Labels
first-steps
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Abandoned. Snapcraft continues to skip stages when files are added, requiring manual cleanup of build directories to trigger rebuilds.

Suggested action:

No scores available.

Issue body

I am running snapcraft assemble (qml plugin) on ted's branch lp:~ted/+junk/digitalsign while iterating over the package, I added 1 new file in ./pic.jpg and edited snapcraft.yaml accordingly: parts: qml: plugin: qml digitalsign: plugin: copy mkdirs: - bin files: digitalsign: bin/digitalsign digitalsign.qml: digitalsign.qml pic.jpg: pic.jpg snappy-metadata: meta rerunning snapcraft assemble will not pull in the new file, as it's skipping the build stage: olli@joe-XPS-12-9Q33:~/code/snappy/digitalsign$ ../../qml/bin/snapcraft assemble Skipping pull digitalsign (already ran) Skipping build digitalsign (already ran) Skipping stage digitalsign (already ran) Snapping digitalsign ... upon deleting ./snap/ ./parts/ ./stage/ the file is being pulled in: ... Building digitalsign cp --preserve=all -R digitalsign /home/olli/code/snappy/digitalsign/parts/digitalsign/install/bin/digitalsign cp --preserve=all -R digitalsign.qml /home/olli/code/snappy/digitalsign/parts/digitalsign/install/digitalsign.qml cp --preserve=all -R pic.jpg /home/olli/code/snappy/digitalsign/parts/digitalsign/install/pic.jpg ... while not critical (workaround: delete files, start over) it's imho a bad experience as it can be expected that developers will iterate over the package quite frequently, rebuilding is taking longer time and thus not desirable

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned. Snapcraft continues to skip stages when files are added, requiring manual cleanup of build directories to trigger rebuilds.
qwen/qwen3.6-35b-a3b Closed without resolution due to prolonged inactivity. Snapcraft skipped rebuild stages when new files were added, requiring manual deletion of build directories to trigger fresh builds. No fix was implemented.
qwen3.6-35b-a3b-mtp-q6 Abandoned. The stage caching bug preventing incremental builds on new files was later resolved in subsequent snapcraft releases via improved dirty-state tracking.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.