snapcraft "stage: [ -f ] " causes FileNotFound on second run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapcraft (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a snapcraft with two parts, one "copy" and one "cmake". I am debugging files used in the "copy" part.
$ snapcraft clean -s build wrapper && snapcraft --debug
My yaml has
----
parts:
wrapper:
plugin: copy
files:
dekkowrapper: dekkowrapper
dekko:
plugin: cmake
source: https:/
source-type: git
...
stage:
- -usr/share/
----
First run, snapcraft runs normally. Then I clean the copy part and run again.
$ snapcraft clean -s build wrapper && snapcraft --debug
Cleaning priming area for wrapper
Cleaning staging area for wrapper
Cleaning build for wrapper
Skipping pull desktop/qt5 (already ran)
'dekko' has prerequisites that need to be staged: desktop/qt5
Skipping pull desktop/qt5 (already ran)
Skipping build desktop/qt5 (already ran)
Skipping stage desktop/qt5 (already ran)
Skipping pull dekko (already ran)
Skipping pull wrapper (already ran)
Skipping build desktop/qt5 (already ran)
'dekko' has prerequisites that need to be staged: desktop/qt5
Skipping pull desktop/qt5 (already ran)
Skipping build desktop/qt5 (already ran)
Skipping stage desktop/qt5 (already ran)
Skipping build dekko (already ran)
Preparing to build wrapper
Building wrapper
Skipping stage desktop/qt5 (already ran)
'dekko' has prerequisites that need to be staged: desktop/qt5
Skipping pull desktop/qt5 (already ran)
Skipping build desktop/qt5 (already ran)
Skipping stage desktop/qt5 (already ran)
Skipping stage dekko (already ran)
Staging wrapper
Skipping prime desktop/qt5 (already ran)
'dekko' has prerequisites that need to be staged: desktop/qt5
Skipping pull desktop/qt5 (already ran)
Skipping build desktop/qt5 (already ran)
Skipping stage desktop/qt5 (already ran)
Priming dekko
Traceback (most recent call last):
File "/usr/lib/
os.
FileNotFoundError: [Errno 2] No such file or directory: '/home/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
snapcraft.
File "/usr/lib/
return run(args, project_options)
File "/usr/lib/
lifecycle.
File "/usr/lib/
snap = execute('prime', project_options)
File "/usr/lib/
_Executor(
File "/usr/lib/
self.
File "/usr/lib/
getattr(part, step)()
File "/usr/lib/
_migrate_
File "/usr/lib/
common.
File "/usr/lib/
shutil.
File "/usr/lib/
copyfile(src, dst, follow_
File "/usr/lib/
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snapcraft 2.12.1
Uname: Linux 4.5.0-040500-
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Jul 19 02:49:59 2016
EcryptfsInUse: Yes
PackageArchitec
SourcePackage: snapcraft
UpgradeStatus: No upgrade log present (probably fresh install)