pluginhandler: exclude `/snap/` from libraries.
Metadata
Current evaluation
Merged. Excludes /snap/ paths from library collection during classic confinement builds, preventing unintended inclusion of snap libraries. Approved, passed CI, and resolves LP: #1670100.
Suggested action: —
No scores available.
Issue body
When collecting libraries when working with classic confinement
we currently collect snaps of our own doing if installed. This
small fix avoids that.
Ideally it would have been good to just add the `no-system-libs`
`build-attributes` but the side effects there are a bit too big
as some libraries are still collected when dealing with snaps
that depend on other snaps.
LP: #1670100
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Excludes /snap/ paths from library collection during classic confinement builds, preventing unintended inclusion of snap libraries. Approved, passed CI, and resolves LP: #1670100. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix to exclude the /snap/ directory from library collection during classic confinement builds. This prevents accidentally packaging the snap's own libraries, addressing LP #1670100. Merged by maintainer sergiusens. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Excludes the /snap/ path from library collection in classic confinement to prevent capturing snap-specific libraries. The no-system-libs attribute was avoided due to side effects. A subsequent version update to v6.10.2 was noted. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2337 pluginhandler: library detection instead of injection | snapcraft | merged | Merged. Replaced host binary injection with library detection via base snaps, converting missing library errors to warnings. Approved by reviewer and passed CI checks. | |
| #3406 pluginhandler: do not walk symlinks for include filesets | snapcraft | merged | Merged fix prevents snapcraft from incorrectly traversing symlinks during include fileset generation. Checks targets before walking to resolve filtering issues for symlinked directories. Approved, passed CI, and merged. |