yaml merge tags are not supported

Bug #1700765 reported by Tim Süberkrüb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Low
Tim Süberkrüb

Bug Description

The current yaml loading implementation in snapcraft doesn't support yaml merge tags.

Example:
parts:
  base: &base
    plugin: nil
    source: .
  my-part:
    plugin: dump
    <<: *base

Snapcraft fails with the following error message:

could not determine a constructor for the tag 'tag:yaml.org,2002:merge'
  in "snap/snapcraft.yaml", line 20, column 5

The problem lies in the yaml dict constructor implementation: https://github.com/snapcore/snapcraft/blob/master/snapcraft/__init__.py#L433

Changed in snapcraft:
assignee: nobody → Tim Süberkrüb (tim-sueberkrueb)
Revision history for this message
Tim Süberkrüb (tim-sueberkrueb) wrote :
Changed in snapcraft:
milestone: none → 2.33
importance: Undecided → Low
status: New → In Progress
status: In Progress → 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.