organize and stage keywords together mess up file conflict checking

Bug #1663002 reported by Ruddick Lawrence on 2017-02-08
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
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.

Ruddick Lawrence (mrjogo) wrote :

Attachment.

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
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  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments