dump plugin cannot copy a single file

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

Bug Description

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

    assets:
        source: git://github.com/ubuntu-core/identity-vault
        plugin: copy
        files:
          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:

    assets:
        source: git://github.com/ubuntu-core/identity-vault
        plugin: dump
        organize:
          settings.yaml: data/settings.yaml
        snap:
          - 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