organize and stage keywords together mess up file conflict checking
Bug #1663002 reported by
Ruddick Lawrence
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.
To post a comment you must log in.
Attachment.