[Errno 2] No such file or directory: '/home/robru/src/bileto.snap/stage/debian/source'

Bug #1623279 reported by Robert Bruce Park
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Joe Talbott

Bug Description

So I'm trying to create my first snap. You can see what I have so far here:

https://git.launchpad.net/~robru/+git/bileto.snap/tree/

One script, snapcraft.yaml pulls in some ubuntu deps and one bzr project. When I run 'snapcraft stage' I get a seemingly sane-looking stage, with my script in stage/bin and the debs I want installed there. When I run 'snapcraft snap', I get:

[snip]
Pulling bileto
Preparing to build phablet-tools
Building phablet-tools
Preparing to build bileto
Building bileto
Staging phablet-tools
Staging bileto
Priming phablet-tools
[Errno 2] No such file or directory: '/home/robru/src/bileto.snap/stage/debian/source'

What? Why is snapcraft expecting stage/ to be a debian package? None of the documentation suggested that stage/ should have a debian/ under it.

summary: [Errno 2] No such file or directory:
- '/home/robru/src/bileto.snap/stage/usr/share/locale/ku'
+ '/home/robru/src/bileto.snap/stage/debian/source'
Revision history for this message
Robert Bruce Park (robru) wrote :

Apparently this is caused by missing the "snap:" section under each part. Would be great if the error message was meaningful.

Kyle Fazzari (kyrofa)
affects: snappy → snapcraft
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Since files are migrated from `stage` to `prime` this would be the case, we can autoinclude `stage` filters into the `snap` one and everyone would be happy until something unexected happens or fail with a better error message

Changed in snapcraft:
status: New → Triaged
Revision history for this message
Joe Talbott (joetalbott) wrote :

Robert,

Can you check and see if this PR[1] fixes the issue for you please?

[1] https://github.com/snapcore/snapcraft/pull/920

Changed in snapcraft:
status: Triaged → Fix Committed
milestone: none → next
assignee: nobody → Joe Talbott (joetalbott)
importance: Undecided → Medium
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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