dump plugin cannot copy a single file

Bug #1638622 reported by James Jesudason on 2016-11-02
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

The copy plugin is being deprecated, but it was useful for copying individual files e.g.

        source: git://github.com/ubuntu-core/identity-vault
        plugin: copy
          settings.yaml: data/settings.yaml

This does not seem to be possible with the dump plugin.

Kyle Fazzari (kyrofa) wrote :

It's possible, it's just done using the snapcraft core options `organize` and `snap` instead of options specific to the plugin (which is why copy was deprecated in favor of dump). For example:

        source: git://github.com/ubuntu-core/identity-vault
        plugin: dump
          settings.yaml: data/settings.yaml
          - data/settings.yaml

Changed in snapcraft:
status: New → Invalid
Sergio Schvezov (sergiusens) wrote :

Maybe take the opporunity to use this bug to add your comment as an example in the dump plugin's help

Changed in snapcraft:
status: Invalid → Triaged
Changed in snapcraft:
importance: Undecided → Low
Leo Arias (elopio) on 2017-01-10
tags: added: plugin
tags: added: snap-docs
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers