snapcraft fails when two parts have the same file in the stage keyword
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rocket.Chat |
New
|
Undecided
|
Unassigned | ||
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
When two parts have the same stage entry, like this:
parts:
part1:
# See 'snapcraft plugins'
plugin: dump
stage: [test]
part2:
plugin: dump
stage: [test]
Running snapcraft will fail in the stage step like this:
Preparing to pull part2
Pulling part2
Preparing to pull part1
Pulling part1
Preparing to build part2
Building part2
Preparing to build part1
Building part1
[Errno 2] No such file or directory: '/root/
The problem is that in lifecycle.py we have this:
for step in common.
if step == 'stage':
It means that it will check for collisions even on parts that haven't been staged.
But you seem to be getting those errors in the build step, not the stage step...