Kernel plugin: Avoid redownloading os.snap on a local Git repo
Metadata
Current evaluation
⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.
Closed without resolution, likely abandoned. The kernel plugin redownloaded a large os.snap file when local Git changes went undetected. No fix or workaround was implemented.
Suggested action: —
No scores available.
Issue body
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. 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.
It seems like there are two ways to avoid this: Cache os.snap locally, or have Snapcraft run 'git pull' to grab source changes into its working directory. The second option seems better as it will behave similar to a non-snap build, where editing the source code has an immediate change.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution, likely abandoned. The kernel plugin redownloaded a large os.snap file when local Git changes went undetected. No fix or workaround was implemented. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Snapcraft continues to ignore local kernel source changes and unnecessarily redownloads the 60MB os.snap file during clean builds. No fix or workaround was implemented. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2566 kernel plugin: correctly download the os.snap | snapcraft | merged | Merged into master. Resolved kernel plugin os.snap download failure by adding missing API parameters. Relocated tests to spread for cross-base coverage. Approved, passed CI, and integrated. | |
| #1567564 kernel plugin should use initrd from /boot in the os snap, not from /usr/lib | snapcraft (launchpad) | closed | Closed without resolution. The proposal to update the snapcraft kernel plugin to source initrd from /boot instead of /usr/lib was abandoned or superseded by later changes, leaving the legacy duplication in place. |