snapcraft expand-extensions is broken

Bug #2011719 reported by Scarlett Gately Moore
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Confirmed
Undecided
Unassigned

Bug Description

snapcraft expand-extensions > snapcraft-expanded.yaml Bad snapcraft.yaml content:

    extra field ‘parse-info’ not permitted in ‘parts.blinken’ configuration

Tags: craft-1701
Revision history for this message
Callahan Kovacs (mr-cal) wrote :

I was able to reproduce this failure with:

```
name: expand-extensions
base: core22
version: '0.1'
summary: "Test `expand-extensions` can successfully parse the snapcraf.yaml."
description: |
  This snapcraft.yaml includes regression tests where extensions, parse-info,
  and advanced grammar are not parsed before expanding extensions.

grade: stable
confinement: strict

apps:
  list-plugins:
    command: /bin/true
    extensions: [gnome]

parts:
  nil:
    plugin: nil
    parse-info:
    - usr/share/metainfo/photos.ansel.app.appdata.xml
    stage-packages:
      - mesa-opencl-icd
      - ocl-icd-libopencl1
      - on amd64:
          - intel-opencl-icd
```

This reproducer exposes a few failure points - advanced grammar, an extension, and parse-info.

Recently, we fixed a similar bug for the `snapcraft list-plugins` command. (https://github.com/snapcore/snapcraft/pull/4035)

It looks like that same fix needs to be applied `snapcraft expand-extensions`.

Originally reported here: https://forum.snapcraft.io/t/parts-part-parse-info-broken/34335

Changed in snapcraft:
status: New → Confirmed
tags: added: craft-1701
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.