snapcraft fails ugly with multipass when a space is inserted into `name:` field

Bug #1794507 reported by Lucy Llewellyn
6
This bug affects 1 person
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)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: Triaged → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
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.