← Back to issue list

Give organize access to variables set during the build step #5241

View original Github issue

Metadata

Project
craft-parts
Number
#1076
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Enhancement to allow the organize keyword to reference variables set during the build step, enabling dynamic file paths. Triaged by a maintainer 497 days ago with no further activity or implementation progress.

Suggested action: keep open

Reason: The issue is triaged (Status: Triaged label) and opened by a maintainer, but the feature is not yet implemented — organize_files in part_handler.py still uses the static spec.organize_files dict with no variable substitution mechanism. The related commit #1598 only adds build pseudo-partition as a source, not dynamic path substitution, so the core request remains unaddressed.

Impact: 45 Quick Win: 20.25 Staleness: 68 Complexity: 55 Confidence: 78 Support Request: 0

Issue body

### What needs to get done Allow the `organize` keyword to have access to the variables set during the build step. ### Why it needs to get done Some filepaths are only known at build time. For full context, see the downstream bug https://github.com/canonical/snapcraft/issues/5241.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20.25
Staleness: 68
Complexity: 55
Confidence: 78
Support Request: 0
keep open Enhancement to allow the organize keyword to reference variables set during the build step, enabling dynamic file paths. Triaged by a maintainer 497 days ago with no further activity or implementation progress.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 50
Confidence: 75
Support Request: 10
keep open Enhancement to allow the organize keyword to access build-time variables. Triaged and opened by a maintainer, but has seen no discussion or progress in over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 92
Complexity: 45
Confidence: 85
Support Request: 10
close stale Enhancement to allow the organize keyword to access build-time variables. Triaged but inactive for over a year with no assignee, milestone, or maintainer progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
keep open Enhancement to allow the organize keyword to access build-step variables for dynamic filepaths. Triaged with an internal Jira ticket created. Inactive for over a year, awaiting implementation.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5241 (confidence 90%)

    Downstream bug that motivated this enhancement, explicitly referenced in the issue body.

  • Related To: craft-parts#1598 (confidence 70%)

    Adds build pseudo-partition as an organize source, a related but distinct capability from variable substitution in organize paths.

Related issues

Issue Project State Summary Similarity
#5241 Give `organize` access to variables set during the build step snapcraft open Enhancement request to allow the organize keyword to access build-environment variables and variables set during the build step. Triaged by a maintainer and tracked upstream in craft-parts#1076, which remains open with no progress.
86%