← Back to issue list

Allow grammar for `package-repositories`

View original Github issue

Metadata

Project
rockcraft
Number
#1036
Type
issue
State
open
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Feature request to allow architecture-conditional URLs in package-repositories (e.g. amd64 vs arm64) so deb-src builds work across architectures. Open 283 days, no labels, no comments, no maintainer response.

Suggested action: needs triage

Reason: The issue is a well-scoped feature request filed by a maintainer (lengau) with a clear use case (cross-arch deb-src builds), but it has no labels, no comments, and no maintainer acknowledgement in 283 days. It requires schema and model changes to support conditional URL values, which is a non-trivial design decision. It needs triage to determine whether the maintainers want to pursue this or if an alternative (e.g. separate build profiles per arch) is preferred.

Impact: 40 Quick Win: 16.0 Staleness: 75 Complexity: 60 Confidence: 55 Support Request: 10

Issue body

### What needs to get done Allow us to use grammar for at least the url field of `package-repositories`. ### Why it needs to get done If I want to enable `deb-src` and build a rock for both amd64 and arm64, I need something like this: ``` package-repositories: - type: apt formats: [deb, deb-src] components: - main - restricted - universe - multiverse suites: - questing url: http://archive.ubuntu.com/ubuntu key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C - type: apt formats: [deb, deb-src] components: - main - restricted - universe - multiverse suites: - questing url: http://ports.ubuntu.com/ key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C ``` But this then causes issues with apt because the architecture isn't available. It would be nice to be able to say: ``` package-repositories: - type: apt formats: [deb, deb-src] components: - main - restricted - universe - multiverse suites: - questing url: - to amd64: http://archive.ubuntu.com/ubuntu - else: http://ports.ubuntu.com key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 16.0
Staleness: 75
Complexity: 60
Confidence: 55
Support Request: 10
needs triage Feature request to allow architecture-conditional URLs in package-repositories (e.g. amd64 vs arm64) so deb-src builds work across architectures. Open 283 days, no labels, no comments, no maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 45
Confidence: 85
Support Request: 10
needs triage Feature request to add conditional grammar for the url field in package-repositories config to avoid duplication across architectures. Currently unlabelled and inactive for 8 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 50
Confidence: 90
Support Request: 10
needs triage Feature request to allow conditional grammar for the url field in package-repositories config to reduce multi-arch duplication. Currently unlabelled and inactive for over 7 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 60
Complexity: 65
Confidence: 90
Support Request: 10
needs triage Feature request to allow conditional grammar for the url field in package-repositories config to avoid duplication across architectures. Currently unlabelled and awaiting maintainer assessment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 40
Confidence: 90
Support Request: 0
needs triage Enable grammar support for conditional URLs in package-repositories to handle architecture-specific apt sources without duplication. Open, zero comments, inactive for 206 days, awaiting triage and assignment.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1831752 Missing grammar for conditional configflags on/to architecture snapcraft (launchpad) open Feature request to add per-architecture conditional grammar support for configflags in snapcraft parts, matching existing build-packages/stage-packages grammar. Open 7+ years with no labels, no maintainer response, and zero comments; unassessed.
73%
#1827067 need a way to add foreign architecture to sources.list for build-packages/stage-packages snapcraft (launchpad) open Feature request (2018) to auto-add foreign-arch lines to sources.list so build-packages/stage-packages like foo:armhf install in LP chroots. Now addressable via the package-repositories feature (per-arch apt repos); issue unlabelled, 0 comments, inactive ~3 years.
72%
#93 Automatically use source package's architectures in non-native mode debcraft open Feature request for debcraft non-native mode to read debian/control to determine target architectures instead of defaulting to all standard platforms. Open, unlabelled, no maintainer comments, inactive for 179 days.
72%