organize and stage keywords together mess up file conflict checking

Bug #1663002 reported by Ruddick Lawrence
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
High
Unassigned

Bug Description

The following snapcraft.yaml section gives a file conflict error ("Parts 'part1' and 'part2' have the following file paths in common which have different contents"):

parts:
  part1:
    plugin: dump
    source: ./src1
    organize:
      '*': opt/
    stage:
      - -opt/commonfile.txt
  part2:
    plugin: dump
    source: ./src2
    organize:
      '*': opt/
    stage:
      - -opt/commonfile.txt

However, when both stage keywords are changed to

    stage:
      - -commonfile.txt

no errors are given, but commonfile.txt is copied into stage (with the later one overwriting the first).

See attachment for full example.

Revision history for this message
Ruddick Lawrence (mrjogo) wrote :

Attachment.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

I believe this actually traces back to bug #1628098, where `organize` is happening at the wrong time, so it isn't taken into collision detection correctly. This definitely needs to be fixed, thank you.

Changed in snapcraft:
importance: Undecided → High
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

(Note that I'm not marking as dupe though-- this bug nicely describes the issue).

Changed in snapcraft:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.