I packaged glowing-bear, and got the snap build with the snapcraft snap, version 2.35:
https://github.com/snapcrafters/glowing-bear/tree/b515ca42cc725e9db4fe2a7e37bafa508d33616a
However, it fails on build.snapcraft.io with the following error:
Building electron-app
electron-builder 19.45.5
Warning: description is missed in the package.json (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/package.json)
Warning: author is missed in the package.json (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/package.json)
Warning: Error: getaddrinfo ENOTFOUND github.com github.com:443
Error: Cannot find electron dependency to get electron version in the '/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/package.json'
at /build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/src/util/electronVersion.ts:60:11
at throw (native)
From previous event:
at computeElectronVersion (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/out/util/electronVersion.js:79:22)
at /build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/src/packager.ts:233:32
at next (native)
From previous event:
at Packager.build (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/out/packager.js:307:11)
at /build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/src/builder.ts:278:40
at next (native)
From previous event:
at build (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/out/builder.js:68:21)
at then (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/src/cli/cli.ts:49:4)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
at processImmediate [as _immediateCallback] (timers.js:611:5)
From previous event:
at Object.args [as handler] (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/src/cli/cli.ts:49:4)
at Object.runCommand (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/yargs/lib/command.js:228:22)
at Object.parseArgs [as _parseArgs] (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/yargs/yargs.js:1041:24)
at Object.get [as argv] (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/yargs/yargs.js:957:21)
at Object.<anonymous> (/build/1780a7e6a61c7f479e8c8f631b3547b6-xenial/parts/electron-app/build/node_modules/electron-builder/src/cli/cli.ts:43:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.34', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module>
run(prog_name='snapcraft')
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke
return Command.invoke(self, ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/__init__.py", line 110, in run
ctx.forward(lifecyclecli.commands['snap'])
File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
return self.invoke(cmd, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 132, in snap
project_options, directory=directory, output=output)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 349, in snap
execute('prime', project_options)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 130, in execute
_Executor(config, project_options).run(step, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 225, in run
self._run_step(step, part, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 262, in _run_step
getattr(part, step)()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 328, in build
script_runner.run(scriptlet=build_scriptlet)
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_scriptlets.py", line 43, in run
run([scriptlet_path], cwd=self._builddir)
File "/usr/lib/python3/dist-packages/snapcraft/internal/common.py", line 63, in run
subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/sh', '/tmp/tmpxksmkfn_', '/tmp/tmpkndhqmm7']' returned non-zero exit status 255
Build failed
Traceback (most recent call last):
File "/usr/lib/launchpad-buildd/lpbuildd/target/build_snap.py", line 220, in run
self.build()
File "/usr/lib/launchpad-buildd/lpbuildd/target/build_snap.py", line 194, in build
env=env)
File "/usr/lib/launchpad-buildd/lpbuildd/target/build_snap.py", line 88, in run_build_command
return self.backend.run(args, cwd=cwd, env=full_env, **kwargs)
File "/usr/lib/launchpad-buildd/lpbuildd/target/lxd.py", line 448, in run
subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['lxc', 'exec', 'lp-xenial-armhf', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'http_proxy=http://snap-proxy.launchpad.net:3128', '--env', 'https_proxy=http://snap-proxy.launchpad.net:3128', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/1780a7e6a61c7f479e8c8f631b3547b6-xenial && linux32 snapcraft']' returned non-zero exit status 1
Full log:
https://build.snapcraft.io/user/snapcrafters/glowing-bear/107662
I suspect that this may be fixed by https:/ /code.launchpad .net/~cjwatson/ launchpad- buildd/ local-snap- proxy/+ merge/322545. However, I tried to run a local test build and found that https:/ /github. com/snapcrafter s/glowing- bear no longer exists. Do you still have this repository somewhere?