← Back to issue list

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

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1561331
Type
issue
State
closed
Author
~elopio
Labels
Created
Updated
Closed

Current evaluation

Closed. Snapcraft raised a FileExistsError when processing legacy directories containing snap/meta/gui. The issue was closed, indicating the path conflict was resolved or abandoned.

Suggested action:

No scores available.

Issue body

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'

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed. Snapcraft raised a FileExistsError when processing legacy directories containing snap/meta/gui. The issue was closed, indicating the path conflict was resolved or abandoned.
qwen/qwen3.6-35b-a3b Abandoned. The issue reported a FileExistsError when re-snapping directories containing legacy snapcraft metadata. No comments, fixes, or merge details were provided.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1717413 snapcraft snap with an unexisting dir shows a traceback snapcraft (launchpad) closed Fixed by implementing proper error handling for missing directories. The Python traceback was replaced with a clear SnapcraftEnvironmentError, providing users with a concise message to verify the directory path before running snapcraft.
70%