lifecycle: rebuild with snapcraft clean part1; snapcraft build part1 breaks if part1 has an 'after' field
Metadata
Current evaluation
Fixed by merged ubuntu-core/snapcraft PR #431 (commit 1e31959d1), which recognizes already-built prerequisite parts when building a selected part.
Resolution: closed resolved
Reason: The issue was fixed in merged PR ubuntu-core/snapcraft#431, commit 1e31959d1. The change checks whether prerequisite parts are already built before reporting unsatisfied dependencies, resolving clean-and-rebuild behavior.
Evaluated by: mr-cal-bot
No scores available.
Issue body
observed that I couldnt invoke:
snapcraft clean part1
snapcraft build part1
the "build" fails because it thinks there are not-fullfilled dependencies even if those haven't been cleaned.
Same tree will happily try to build part1 if i run:
snapcraft build
Reproduce with snapcraft example in tree:
cd examples/libpipeline
../../bin/snapcraft build
../../bin/snapcraft clean pipelinetest
../../bin/snapcraft build pipelinetest
Fails with: Requested 'pull' of 'pipelinetest' but there are unsatisfied prerequisites: 'libpipeline'
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged ubuntu-core/snapcraft PR #431 (commit 1e31959d1), which recognizes already-built prerequisite parts when building a selected part. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #431 (commit 1e31959d1), which checks whether prerequisite parts are already built before reporting unsatisfied dependencies. | |
| stealth/space-bunny-alpha | — | closed stale | Closed with no recorded fix, superseding reference, or maintainer rationale; the long-inactive report appears stale. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments, likely abandoned. The lifecycle bug causing unsatisfied dependency errors after cleaning a specific part remains unaddressed. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or resolution, indicating abandonment. The snapcraft lifecycle bug causing build failures after cleaning a part with dependencies was not addressed or fixed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without documented resolution. The snapcraft clean and build dependency tracking bug remains unverified, likely abandoned due to prolonged inactivity. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
ubuntu-core/snapcraft#431
(confidence 100%)
Merged fixing PR identified in the closing comment; commit 1e31959d1 adds the prerequisite-built check.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1537786 lifecycle: allow do clean rebuild of all/parts without having to pull all again | snapcraft (launchpad) | closed | Added per-part, per-step clean commands via merged canonical/snapcraft PR #401 (88d21b180), allowing lifecycle rebuilds without recloning all sources. | |
| #1897337 snapcraft build <part> ignores the part | snapcraft (launchpad) | closed | Selective part builds were restored by snapcore/snapcraft#3572, which passed named parts into lifecycle planning instead of building every defined part. | |
| #4806 Build "part" action forces clean build | snapcraft | closed | Fixed by merged craft-parts PR #727, which limits step reruns and cleaning to explicit requests, restoring incremental `snapcraft build <part>` behavior. | |
| #1815658 snapcraft leaks build-environment across parts | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft PR #2472 (commit 8ca7dd7f2), preventing a part's build-environment from leaking into subsequently processed parts. | |
| #1578170 Your first snap: snapcraft clean needed before second snapcraft stage | snapcraft (launchpad) | closed | Fixed in canonical/snapcraft#4 by PRs #442–#448 (commits 1a6a21831, 80de92254, 6224553ae, da1411df0): snapcraft.yaml changes now dirty lifecycle steps, avoiding the required manual clean. |