Redefining elements of remote parts does not work

Bug #1602728 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Sergio Schvezov

Bug Description

According to http://askubuntu.com/questions/797031/how-do-you-exclude-files-from-wiki-part-used-in-snapcraft-yaml it should be possible to redefine elements of remote parts. In the following example (using snapcraft 2.12.1) it doesn't quite work.

name: game-2048
version: 1
summary: 2048 game
description: clone written in pure QML. No C++ wrappers needed.
confinement: strict

apps:
  game-2048:
    command: desktop-launch $SNAP/usr/lib/*/qt5/bin/qmlscene $SNAP/2048.qml
    plugs: [unity7, opengl, x11]

parts:
  game-2048:
    plugin: copy
    source: https://github.com/MartinBriza/2048.qml
    source-type: git
    files:
      2048.qml: 2048.qml
    stage-packages:
      - qml-module-qtquick2
      - qmlscene
    after: [desktop/qt5]
  desktop/qt5:
    snap:
      - -usr/include
      - -usr/share/doc
      - -usr/share/icons
      - -usr/share/themes

The error message is:

Issues while validating snapcraft.yaml: The 'parts' property does not match the required schema: Additional properties are not allowed ('desktop/qt5' was unexpected)

Leo Arias (elopio)
Changed in snapcraft:
importance: Undecided → High
Revision history for this message
Leo Arias (elopio) wrote :

Daniel suggests this might happen because of the slash. Triaging is needed.

Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1602728] Re: Redefining elements of remote parts does not work

El 14/07/16 a las 12:44, Leo Arias escribió:
> Daniel suggests this might happen because of the slash. Triaging is
> needed.
>
I know this is the case ;-)

Revision history for this message
Daniel Holbach (dholbach) wrote :

http://paste.ubuntu.com/19882459/ is not a complete fix, but it makes the above .yaml work.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: New → In Progress
assignee: nobody → Sergio Schvezov (sergiusens)
milestone: none → 2.13
Changed in snapcraft:
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.