← Back to issue list

Extensions try to add parts multiple times

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1797638
Type
issue
State
closed
Author
~kyrofa
Labels
18.10-extensions
Created
Updated
Closed

Current evaluation

Fixed in snapcore/snapcraft#2350 (commit 7e0391d40) by parsing all declared extensions before applying them, preventing shared extensions from adding duplicate parts.

Resolution: closed resolved

Reason: The maintainer linked PR #2350 as the fix. It landed as commit 7e0391d40, which collects all declared extensions before applying them and prevents duplicate part insertion when apps share an extension.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Extensions are applied incorrectly in that multiple apps using the same extension end up trying to insert the same part.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed in snapcore/snapcraft#2350 (commit 7e0391d40) by parsing all declared extensions before applying them, preventing shared extensions from adding duplicate parts.
stealth/space-bunny-alpha — closed resolved Fixed duplicate extension-part insertion by parsing all declared extensions before applying them; merged in canonical/snapcraft#2350 as 7e0391d40.
stealth/space-bunny-alpha — closed stale Snapcraft#1797638 reported duplicate extension-part insertion; it was closed without a documented fix, resolving PR, or maintainer explanation after years of inactivity.
qwen/qwen3.6-35b-a3b — — Closed without documented resolution. Multiple apps using the same extension incorrectly attempted to insert duplicate parts.
qwen/qwen3.6-35b-a3b — — Closed without discussion. The extension duplicate part insertion bug affecting multiple apps was abandoned or resolved externally.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2350 (confidence 100%)

    Merged as commit 7e0391d40 with the title "extensions: parse all declared extensions before applying".

Related issues

Issue Project State Summary Similarity
#2350 extensions: parse all declared extensions before applying snapcraft merged Merged in snapcore/snapcraft#2350 (commit 7e0391d40), parsing all declared extensions before applying any to fix LP #1797638.
78%
#3679 Expand extensions snapcraft merged Merged PR snapcore/snapcraft#3679 via commit 07a8d695c, expanding extensions for CRAFT-948 in the snapcraft/7.0 branch.
75%
#3781 extensions: refactor snapcraft merged Merged in snapcraft#3781 via commit 986a9895b (merge 52155ff01), centralizing extension checks in the base class to prevent future cyclic imports.
74%
#4110 extensions: parse snapcraft.yaml before expanding extensions snapcraft merged Merged #4110 (commit 51ca1524b): expand-extensions now parses snapcraft.yaml before expansion, fixing valid core22 files that use parse-info and advanced grammar keywords.
71%
#1790197 Extensions are being installed into incorrect directory snapcraft (launchpad) closed Fixed the extension install path in snapcore/snapcraft#2236 (commit f48b08f1e), moving data from /usr/share/extensions-data to /usr/share/extensions.
71%