dump plugin cannot copy a single file

Bug #1638622 reported by James Jesudason
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
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.

Revision history for this message
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
Revision history for this message
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)
tags: added: plugin
tags: added: snap-docs
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.