snapcraft fails ugly with multipass when a space is inserted into `name:` field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
error log:
$ snapcraft
```
Launching a VM.
failed to launch: Invalid arguments supplied
Invalid instance name supplied: snapcraft-alsa test
An error occurred when trying to launch the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
```
snapcraft.yaml:
```
name: alsa test
version: 0.1
summary: Tests the alsa part for chaining
description: |
The alsa part should support chaining directly.
This file tries to see if it works.
grade: devel
confinement: strict
parts:
test:
plugin: nil
after: [alsa-chain-test]
```
note it accidentally includes a space in the `name:` field - while this is incorrect syntax for snapcraft.yaml the tool should be more friendly in pointing out the problem.
description: | updated |
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in snapcraft: | |
milestone: | none → 3.0 |
Changed in snapcraft: | |
milestone: | 3.0 → 3.0.1 |
Changed in snapcraft: | |
assignee: | nobody → Sergio Schvezov (sergiusens) |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/snapcore/ snapcraft/ pull/2388