snapcraft
snap is broken.
$ snapcraft version
snapcraft, version 3.1
$ which snapcraft
/snap/bin/snapcraft
$ snapcraft -d
Sorry, an error occurred in Snapcraft.
We would appreciate it if you anonymously reported this issue.
No other data than the traceback ('/tmp/tmpfzqf2osp/trace.txt') and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always) [no]: n
$ # cat /tmp/tmpfzqf2osp/trace.txt
Traceback (most recent call last):
File "/snap/snapcraft/2496/legacy_snapcraft/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/2496/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/2496/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/2496/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 1043, in invoke
return Command.invoke(self, ctx)
File "/snap/snapcraft/2496/legacy_snapcraft/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
...
It says 3.1, and loads legacy_snapcraft 2.43.1.
I didnβt include actual error at the end, because it is fixed in 3.1 in https://bugs.launchpad.net/snapcraft/+bug/1806746 Legacy version tries to create snap/.snapcraft
and it fails in my case, because I run snapcraft
on r/o volume to test Out-of-tree builds with snapcraft,