← Back to issue list

Reprime detection

View original Github issue

Metadata

Project
craft-parts
Number
#540
Type
issue
State
open
Author
sergiusens
Labels
—
Created
Updated
Closed
—

Current evaluation

Maintainer request for craft-parts to detect a rerouted prime directory and unprime before re-priming; still open, while snapcraft#4219 received a separate try-specific workaround.

Suggested action: keep open

Reason: The maintainer explicitly identifies the required capability and provider-mount failure mode, while the repository has a generic step-driven Executor.clean but no history of unprime/reprime support or changed-prime-directory detection. The requested outcome is valid, but implementation needs clearer semantics for detecting reroutes and cleaning state and content; snapcraft#4347 only addresses snapcraft try.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 10 Complexity: 64 Confidence: 81 Actionability: 57

Issue body

### What needs to get done We need to be able to unprime, that is, to clean parts up to the prime point ### Why it needs to get done We need to unprime for the cases where the prime directory get's rerouted, such as when we use craft providers to mount a new prime directory into the instance. This would solve https://github.com/snapcore/snapcraft/issues/4219

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 10
Complexity: 64
Confidence: 81
Actionability: 57
keep open Maintainer request for craft-parts to detect a rerouted prime directory and unprime before re-priming; still open, while snapcraft#4219 received a separate try-specific workaround.
qwen/qwen3.8-27b
Impact: 40
Quick Win: 6
Complexity: 55
Confidence: 50
Actionability: 35
needs triage Feature request for reprime detection/unprime capability in craft-parts to handle prime directory rerouting via craft providers. No labels, no maintainer assessment, only a bot comment. Referenced snapcraft#4219 was fixed separately in snapcraft PR #4347.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 12
Complexity: 50
Confidence: 60
Actionability: 60
needs triage Feature request to add "unprime" capability to clean parts up to the prime point when prime directory is rerouted. Referenced issue snapcraft#4219 was fixed with a workaround, but the craft-parts feature hasn't been implemented. Issue has no labels and no maintainer response.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20
Staleness: 75
Complexity: 55
Confidence: 60
Support Request: 0
needs triage Feature request to add unprime (clean parts up to the prime point) to craft-parts for prime-directory rerouting with craft providers. Unimplemented, unlabelled, last activity a 2024 bot comment; motivating snapcraft#4219 was fixed in snapcraft itself.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
close stale Feature request to implement unprime functionality for cleaning parts up to the prime point when directories are rerouted. The issue lacks labels, has no maintainer engagement beyond an automation bot, and has been inactive for over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 55
Confidence: 75
Support Request: 10
needs triage Feature request to implement unprime functionality for cleaning parts up to the prime point, needed when prime directories are rerouted via craft providers. Open for nearly three years with no maintainer assessment or labels.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#4219 (confidence 100%)

    Explicitly linked by #540 as the motivating failure; the downstream issue is now closed.

  • Related To: snapcraft#4347 (confidence 96%)

    Merged workaround re-primes snapcraft try over a host-mounted prime directory, but does not add generic craft-parts detection.

Related issues

Issue Project State Summary Similarity
#4347 fix: reprime for try snapcraft merged Merged PR #4347 (commit 89fb02a19) re-primes before try, preventing a host mount from masking existing prime contents and fixing #4219.
70%