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

Bug #2051841 reported by Michał Sawicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.