snapcraft command doesn't include expected changes
Metadata
Current evaluation
Local source edits now trigger refreshed pull/build steps, fixing stale packaged files; snapcraft#2167 was merged in commit 39c4c39f1.
Resolution: closed resolved
Reason: snapcraft#2167 added timestamp-based detection of local source changes and refreshed subsequent lifecycle steps as needed. The change was merged in commit 39c4c39f1 and directly resolves LP#1583718.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Using xenial and working on a gnome-calculator snap with that yaml (simplified)
"apps:
calc:
command: calc.bin
parts:
calc:
plugin: copy
files:
calc: calc.bin"
If you edit the calc.bin script and type "snapcraft" a new .snap is built but without including the updated version which is a confusing behaviour. It works after doing "snapcraft clean -s build" but that's one more command to type and shouldn't be needed, snapcraft should be smart enough to take updated version when there are local changes
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Local source edits now trigger refreshed pull/build steps, fixing stale packaged files; snapcraft#2167 was merged in commit 39c4c39f1. | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft gained automatic detection of local source changes; the fix merged in canonical/snapcraft#2167 as commit 39c4c39f1. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #443 (80de9225) made Snapcraft automatically re-stage and rerun dependent steps when cached state is dirty, preventing stale files from being packaged. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution due to inactivity. The build caching behavior preventing local file changes from triggering rebuilds remains unaddressed. The issue appears abandoned or superseded by newer snapcraft versions. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The build caching bug was abandoned or superseded by later improvements, requiring manual cache cleaning as a workaround. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft caching ignores local file changes during rebuilds. The issue appears abandoned or superseded by newer build system improvements. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned due to inactivity. The reported caching bug causing snapcraft to ignore local file changes remains unresolved, with no fix or workaround implemented. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#2167
(confidence 99%)
Merged fix for detecting modified local sources; its title and description explicitly reference LP#1583718.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1688151 snapcraft pull doesn't save the installed build dependencies | snapcraft (launchpad) | closed | Fixed in merged PR #1299 (95d737dc3); PR #1340 later expanded recording to all build packages globally. | |
| #2256 local source: don't include .snapcraft directory | snapcraft | merged | Merged #2256 (commit abbc92427), fixing LP #1791773 by excluding .snapcraft from local-source copies and stale-part checks. | |
| #1816397 Modifying snapcraft.yaml with parts using local sources get dirty | snapcraft (launchpad) | closed | Fixed in PR snapcore/snapcraft#2475 (53f96dc71): local-source dirty checks now ignore snap-directory changes, preventing manifest-only edits from rebuilding parts. | |
| #1791773 Local source change detection doesn't filter out snap/.snapcraft directory | snapcraft (launchpad) | closed | Local-source change detection now excludes the snap/.snapcraft directory; the fix was merged in canonical/snapcraft#2256 as commit abbc92427. | |
| #1719928 snapcraft update won't fetch from SNAPCRAFT_PARTS_URI | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft PR #1856, which keyed cached parts data by SNAPCRAFT_PARTS_URI so alternate part sources were no longer treated as already current. | |
| #1793471 snapcraft trggers unnecessary pulls from unrelated file modifications | snapcraft (launchpad) | open | Unresolved proposal for .snapignore to prevent IDE and .git changes from invalidating local-source pulls and rebuilds; current code has no matching support and the issue has had no discussion. | |
| #2734 SnapcraftError refactoring | snapcraft | merged | SnapcraftError refactoring was merged in canonical/snapcraft#2734 after maintainer approval, updating four files (+279/-26). | |
| #1621713 snapcraft release doesn't match the spec | snapcraft (launchpad) | closed | Snapcraft now correctly handles revision arguments and channel updates; the maintainer confirmed the outdated release behavior is resolved. | |
| #1983009 Snapcraft 7.1.0 fails to find stage package when cross-compiling | snapcraft (launchpad) | closed | Fixed by canonical/snapcraft#3416 (commit 8f418e3d9), restoring core20 behavior so stage packages come from build-on repositories during cross-compilation. | |
| #1477904 snapcraft.yaml needs to make all stages dirty (was: the can't add file without recreating entire package) | snapcraft (launchpad) | closed | snapcraft.yaml changes now invalidate and rerun all lifecycle steps, implemented by canonical/snapcraft PRs #442–#448; final pull-stage fix landed as da1411df0. |