to Reproduce:
https://github.com/winwisely99/enrollment-mod
make flu-desk-pack
It tries to build all 3 linux types.
debian works ( hence i closed this issue: https://github.com/go-flutter-desktop/go-flutter/issues/284)
snap fails...
d /Users/apple/workspace/go/src/github.com/winwisely99/enrollment-mod/enrollment && hover build linux-snap
hover: Using engine from cache
hover: Cleaning the build directory
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠ It's advised to use the beta channel: `flutter channel beta`
hover: Bundling flutter app
hover: Because darwin is not able to compile for linux out of the box, a cross-compiling container is used
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM dockercore/golang-cross
---> e9c59db2dea3
Step 2/2 : RUN apt-get update && apt-get install libgl1-mesa-dev xorg-dev -y
---> Using cache
---> 53dfbc3de38e
Successfully built 53dfbc3de38e
Successfully tagged hover-build-cc:latest
hover: Cross-Compiling 'go-flutter' and plugins using docker
hover: Successfully cross-compiled for linux
hover: Packaging snap in /var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/hover-build-enrollment-linux-snap000263251
Sending build context to Docker daemon 5.632kB
Step 1/1 : FROM snapcore/snapcraft
latest: Pulling from snapcore/snapcraft
16c48d79e9cc: Pull complete
3c654ad3ed7d: Pull complete
6276f4f9c29d: Pull complete
a4bd43ad48ce: Pull complete
b05a6d825956: Pull complete
113e1c5c1910: Pull complete
1264ad5fe4e7: Pull complete
c4733adb6584: Pull complete
Digest: sha256:c35c269b969a85a361b3c7bb7fb75edd68f130fac07de14ee7d5258dad8a2c6d
Status: Downloaded newer image for snapcore/snapcraft:latest
---> 3f1fc68a4f8a
Successfully built 3f1fc68a4f8a
Successfully tagged hover-build-packaging-linux-snap:latest
The following snaps are required but not installed as snapcraft is running inside docker or podman container: core18.
Please ensure the environment is properly setup before continuing.
Ignore this message if the appropriate measures have already been taken
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [973 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [587 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1350 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [991 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.2 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6276 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 16.1 MB in 0s (0 B/s)
Get:1 libxdmcp6_1.1.2-1.1_amd64.deb [11.0 kB]
Fetched 11.0 kB in 0s (0 B/s)
Get:1 libdrm-nouveau2_2.4.91-2~16.04.1_amd64.deb [16.3 kB]
Fetched 16.3 kB in 0s (0 B/s)
Get:1 libpciaccess0_0.13.4-1_amd64.deb [18.1 kB]
Fetched 18.1 kB in 0s (0 B/s)
Get:1 libxcb-present0_1.11.1-1ubuntu1_amd64.deb [5218 B]
Fetched 5218 B in 0s (0 B/s)
Get:1 libglapi-mesa_18.0.5-0ubuntu0~16.04.1_amd64.deb [23.4 kB]
Fetched 23.4 kB in 0s (0 B/s)
Get:1 libxrender1_0.9.9-0ubuntu1_amd64.deb [18.5 kB]
Fetched 18.5 kB in 0s (0 B/s)
Get:1 libelf1_0.165-3ubuntu1.2_amd64.deb [43.5 kB]
Fetched 43.5 kB in 0s (0 B/s)
Get:1 libbsd0_0.8.2-1_amd64.deb [41.7 kB]
Fetched 41.7 kB in 0s (0 B/s)
Get:1 zlib1g_1.2.8.dfsg-2ubuntu4.1_amd64.deb [51.2 kB]
Fetched 51.2 kB in 0s (0 B/s)
Get:1 libxcursor1_1.1.14-1ubuntu0.16.04.2_amd64.deb [19.9 kB]
Fetched 19.9 kB in 0s (0 B/s)
Get:1 gcc-6-base_6.0.1-0ubuntu1_amd64.deb [14.3 kB]
Fetched 14.3 kB in 0s (0 B/s)
Get:1 libx11-6_1.6.3-1ubuntu2.1_amd64.deb [570 kB]
Fetched 570 kB in 0s (0 B/s)
Get:1 libexpat1_2.1.0-7ubuntu0.16.04.5_amd64.deb [71.5 kB]
Fetched 71.5 kB in 0s (0 B/s)
Get:1 libxshmfence1_1.2-1_amd64.deb [5042 B]
Fetched 5042 B in 0s (0 B/s)
Get:1 libgcc1_6.0.1-0ubuntu1_amd64.deb [38.5 kB]
Fetched 38.5 kB in 0s (0 B/s)
Get:1 libdrm-amdgpu1_2.4.91-2~16.04.1_amd64.deb [18.9 kB]
Fetched 18.9 kB in 0s (0 B/s)
Get:1 libllvm6.0_6.0-1ubuntu2~16.04.1_amd64.deb [14.3 MB]
Fetched 14.3 MB in 0s (0 B/s)
Get:1 libxau6_1.0.8-1_amd64.deb [8376 B]
Fetched 8376 B in 0s (0 B/s)
Get:1 libtinfo5_6.0+20160213-1ubuntu1_amd64.deb [76.8 kB]
Fetched 76.8 kB in 0s (0 B/s)
Get:1 libxcb1_1.11.1-1ubuntu1_amd64.deb [40.0 kB]
Fetched 40.0 kB in 0s (0 B/s)
Get:1 libxinerama1_1.1.3-1_amd64.deb [7908 B]
Fetched 7908 B in 0s (0 B/s)
Get:1 libxrandr2_1.5.0-1_amd64.deb [17.6 kB]
Fetched 17.6 kB in 0s (0 B/s)
Get:1 libdrm2_2.4.91-2~16.04.1_amd64.deb [30.8 kB]
Fetched 30.8 kB in 0s (0 B/s)
Get:1 libglu1-mesa_9.0.0-2.1_amd64.deb [168 kB]
Fetched 168 kB in 0s (0 B/s)
Get:1 libxfixes3_5.0.1-2_amd64.deb [11.1 kB]
Fetched 11.1 kB in 0s (0 B/s)
Get:1 libx11-data_1.6.3-1ubuntu2.1_all.deb [113 kB]
Fetched 113 kB in 0s (0 B/s)
Get:1 libgl1-mesa-dri_18.0.5-0ubuntu0~16.04.1_amd64.deb [6080 kB]
Fetched 6080 kB in 0s (0 B/s)
Get:1 libxxf86vm1_1.1.4-1_amd64.deb [10.6 kB]
Fetched 10.6 kB in 0s (0 B/s)
Get:1 libxdamage1_1.1.4-2_amd64.deb [6946 B]
Fetched 6946 B in 0s (0 B/s)
Get:1 libgl1-mesa-glx_18.0.5-0ubuntu0~16.04.1_amd64.deb [132 kB]
Fetched 132 kB in 0s (0 B/s)
Get:1 libedit2_3.1-20150325-1ubuntu2_amd64.deb [76.5 kB]
Fetched 76.5 kB in 0s (0 B/s)
Get:1 libdrm-intel1_2.4.91-2~16.04.1_amd64.deb [59.9 kB]
Fetched 59.9 kB in 0s (0 B/s)
Get:1 libffi6_3.2.1-4_amd64.deb [17.8 kB]
Fetched 17.8 kB in 0s (0 B/s)
Get:1 libdrm-radeon1_2.4.91-2~16.04.1_amd64.deb [21.5 kB]
Fetched 21.5 kB in 0s (0 B/s)
Get:1 libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb [393 kB]
Fetched 393 kB in 0s (0 B/s)
Get:1 libxcb-glx0_1.11.1-1ubuntu1_amd64.deb [20.9 kB]
Fetched 20.9 kB in 0s (0 B/s)
Get:1 libxcb-dri2-0_1.11.1-1ubuntu1_amd64.deb [6882 B]
Fetched 6882 B in 0s (0 B/s)
Get:1 libsensors4_3.4.0-2_amd64.deb [28.4 kB]
Fetched 28.4 kB in 0s (0 B/s)
Get:1 libxcb-dri3-0_1.11.1-1ubuntu1_amd64.deb [5218 B]
Fetched 5218 B in 0s (0 B/s)
Get:1 libx11-xcb1_1.6.3-1ubuntu2.1_amd64.deb [9044 B]
Fetched 9044 B in 0s (0 B/s)
Get:1 libxcb-sync1_1.11.1-1ubuntu1_amd64.deb [8324 B]
Fetched 8324 B in 0s (0 B/s)
Get:1 libxext6_1.3.3-1_amd64.deb [29.4 kB]
Fetched 29.4 kB in 0s (0 B/s)
Get:1 libdrm-common_2.4.91-2~16.04.1_all.deb [4764 B]
Fetched 4764 B in 0s (0 B/s)
Pulling app
Pulling assets
Pulling desktop
Building app
Building assets
Building desktop
Staging app
Sorry, an error occurred in Snapcraft:
[Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'
Traceback (most recent call last):
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 109, in link_or_copy
link(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 143, in link
os.link(source_path, destination, follow_symlinks=False)
OSError: [Errno 5] Input/output error: '/app/parts/app/install/lib/x86_64-linux-gnu/libbsd.so.0' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/snapcraft/current/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==3.8', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 1114, in invoke
return Command.invoke(self, ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_runner.py", line 103, in run
snap_command.invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/_command.py", line 87, in invoke
return super().invoke(ctx)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/current/lib/python3.5/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 261, in snap
_execute(steps.PRIME, parts=[], pack_project=True, output=output, **kwargs)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/cli/lifecycle.py", line 66, in _execute
lifecycle.execute(step, project_config, parts)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 94, in execute
executor.run(step, part_names)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 148, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 162, in _handle_step
getattr(self, "_run_{}".format(current_step.name))(part)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 226, in _run_stage
self._run_step(step=steps.STAGE, part=part, progress="Staging")
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/lifecycle/_runner.py", line 281, in _run_step
getattr(part, step.name)()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 740, in stage
self._do_runner_step(steps.STAGE)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 242, in _do_runner_step
return getattr(self._runner, "{}".format(step.name))()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 84, in stage
"override-stage", self._override_stage_scriptlet, self._stagedir
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 137, in _run_scriptlet
scriptlet_name, function_call.strip()
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/_runner.py", line 193, in _handle_builtin_function
function(**function_args)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 762, in _do_stage
fixup_func=fixup_func,
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/internal/pluginhandler/__init__.py", line 1125, in _migrate_files
file_utils.link_or_copy(src, dst, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 117, in link_or_copy
copy(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/lib/python3.5/site-packages/snapcraft/file_utils.py", line 166, in copy
shutil.copy2(source, destination, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 251, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/snap/snapcraft/current/usr/lib/python3.5/shutil.py", line 112, in copyfile
os.symlink(os.readlink(src), dst)
FileExistsError: [Errno 17] File exists: 'libbsd.so.0.8.2' -> '/app/stage/lib/x86_64-linux-gnu/libbsd.so.0'
You can find the traceback in file '/tmp/tmpf46sgiyb/trace.txt'.
hover: Docker run failed: exit status 1
make: *** [flu-desk-pack] Error 1
wontfix MacOS hover experimental bug