← Back to issue list

Plugs/Slots implicit assignment should be deprecated for `base: core24`

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2051841
Type
issue
State
open
Author
~saviq
Labels
—
Created
Updated
Closed
—

Current evaluation

Configured top-level plugs/slots still create implicit core24 connections without warnings; only null-valued entries warn. The proposed deprecation or unused-connection warning remains untriaged.

Suggested action: needs triage

Reason: The report provides concrete null and configured-interface examples, while the current validators warn only when a plug or slot value is None; a configured mapping therefore bypasses the warning and remains active. Implementing a base-aware deprecation or distinguishing configuration-only mappings requires policy decisions and compatibility tests, and the issue has no labels or maintainer response to establish the intended behavior.

Evaluated by: mr-cal-bot

Impact: 42 Quick Win: 14 Complexity: 52 Confidence: 91 Actionability: 70

Issue body

When you use a statement like: ``` plugs: interface: slots: interface: ``` You get warnings: ``` Warning: implicit plug assignment in 'interface'. Plugs should be assigned to the app to which they apply, and not implicitly assigned via the global 'plugs:' stanza which is intended for configuration only. (Reference: https://snapcraft.io/docs/snapcraft-interfaces) ``` ``` Warning: implicit slot assignment in 'interface'. Slots should be assigned to the app to which they apply, and not implicitly assigned via the global 'slots:' stanza which is intended for configuration only. (Reference: https://snapcraft.io/docs/snapcraft-interfaces) ``` But if your connection is configured, like below, the warning is gone, but the connection still gets acted on: ``` plugs: content-foo: interface: content ``` With `base: core24` incoming, we should probably deprecate implicit connection definitions altogether, or at least make things consistent and warn about unused, configured, connections.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 42
Quick Win: 14
Complexity: 52
Confidence: 91
Actionability: 70
needs triage Configured top-level plugs/slots still create implicit core24 connections without warnings; only null-valued entries warn. The proposed deprecation or unused-connection warning remains untriaged.
stealth/space-bunny-alpha
Impact: 52
Quick Win: 15
Complexity: 58
Confidence: 94
Actionability: 68
needs triage Top-level plug and slot mappings that define an interface suppress the implicit-assignment warning and remain active; a core24 deprecation or warning for unreferenced configured connections is proposed.
stealth/space-bunny-alpha
Impact: 52
Quick Win: 16
Complexity: 61
Confidence: 88
Actionability: 77
needs triage Untriaged proposal to extend core24 warnings or deprecation to implicit plug/slot connections, including configured entries; no labels or maintainer response.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30
Staleness: 85
Complexity: 40
Confidence: 30
Support Request: 10
needs triage Proposal to deprecate implicit plug/slot assignment for base: core24. Open 946 days with no maintainer response, labels, or comments.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 50
Confidence: 85
Support Request: 20
close stale Suggests deprecating implicit plug/slot assignment in snapcraft for base: core24 due to inconsistent warnings. Unlabeled, no maintainer interaction, inactive for ~2.5 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 10
close stale Issue requests deprecating implicit plug/slot assignment in snapcraft for base: core24. No activity for 903 days, no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 50
Confidence: 70
Support Request: 10
close stale Suggests deprecating implicit plug/slot assignment in snapcraft for base: core24 to address warnings and ensure consistent connection handling. Currently untriaged and inactive for over two years.

Update history

Date Change
created

Related work

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

    Commit 61d519eec added global plug/slot assignment warnings, but current validation only warns for null-valued entries.

Related issues

No related issues found above the similarity threshold.