`base: core22` `default-provider:` allows channels, but SnapD doesn't
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Snapcraft doesn't let you build a snap with a `default-provider:` that isn't available (yet):
```yaml
plugs:
graphics-core22:
interface: content
target: $SNAP/graphics
default-
```
```shell
$ snapcraft
Launching instance...
Error installing snap 'mesa-core22' from channel 'latest/stable'.
Failed to execute pack in instance.
Full execution log: '/home/
```
It will happily build, if you give it a channel:
```yaml
default-provider: mesa-core22/edge
```
But then SnapD can't install it:
```shell
$ snap install graphics-test-tools --channel 22/edge
error: cannot perform the following tasks:
- Ensure prerequisites for "graphics-
```
Snapcraft should either allow non-existent `default-
https:/
tags: | added: craft-1655 |
Changed in snapcraft: | |
status: | New → Confirmed |
description: | updated |
we should not be allowing channels in snapcraft.yaml; perhaps we could with a big warning for bootstrapping purposes, if so, that should not make it to snap.yaml