snapping a dir with old snapcraft files shows: File exists: '/home/elopio/workspace/canonical/snapcraft/ex amples/py2-project/snap/meta/gui'

Bug #1561331 reported by Leo Arias
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Sergio Schvezov

Bug Description

I have a directory that I snapped with an old snapcraft version (pre 2.6). When I try to snap it again, it errors with:

[Errno 17] File exists: '/home/elopio/workspace/canonical/snapcraft/examples/py2-project/snap/meta/gui'

elopio@calchas:~/workspace/canonical/snapcraft/examples/py2-project$ ./../../bin/snapcraft
Skipping pull spongeshaker (already ran)
Skipping pull make-project (already ran)
Skipping build spongeshaker (already ran)
Skipping build make-project (already ran)
Skipping stage spongeshaker (already ran)
Skipping stage make-project (already ran)
Skipping strip spongeshaker (already ran)
Skipping strip make-project (already ran)
DEPRECATED: 'icon' defined in snapcraft.yaml
[Errno 17] File exists: '/home/elopio/workspace/canonical/snapcraft/ex
amples/py2-project/snap/meta/gui'

Revision history for this message
Leo Arias (elopio) wrote :

setting priority to low because the fix is easy: run snapcraft clean.

The error doesn't make it clear about what's happening though.

Changed in snapcraft:
importance: Undecided → Low
Changed in snapcraft:
milestone: none → 2.7
assignee: nobody → Sergio Schvezov (sergiusens)
Leo Arias (elopio)
summary: - snapping an dir with old snapcraft files shows: File exists:
+ snapping a dir with old snapcraft files shows: File exists:
'/home/elopio/workspace/canonical/snapcraft/ex
amples/py2-project/snap/meta/gui'
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Having declared icon and `setup/gui/meta` causes the problem.

Changed in snapcraft:
importance: Low → Medium
status: New → In Progress
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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