The Cargo.toml is in the project root, that’s why I wondered why the src
is showing up in the manifest path. I’ve moved the snapcraft.yaml from the project root to the snap folder, but that doesn’t seem to make any difference.
For reference, this is the project:
The output looks as follows:
/build/pyo3-pack/parts/pyo3-pack/rust/rustup.sh --prefix=/build/pyo3-pack/parts/pyo3-pack/rust --disable-sudo --save
/build/pyo3-pack/parts/pyo3-pack/rust/bin/cargo fetch --manifest-path /build/pyo3-pack/parts/pyo3-pack/src/Cargo.toml
Failed to run '/build/pyo3-pack/parts/pyo3-pack/rust/bin/cargo fetch --manifest-path /build/pyo3-pack/parts/pyo3-pack/src/Cargo.toml' for 'pyo3-pack': Exited with code 101.
Verify that the part is using the correct parameters and try again.
Build failed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 199, in run
self.pull()
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 165, in pull
env=env)
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 69, in run_build_command
return self.backend.run(args, env=full_env, **kwargs)
File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 460, 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-amd64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_LOCAL_SOURCES=1', '--env', 'SNAPCRAFT_SETUP_CORE=1', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build_url": "https://launchpad.net/~build.snapcraft.io/+snap/9044599915a43ebd1b24eb7e23763e2e-xenial/+build/290033"}', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/pyo3-pack && linux64 snapcraft pull']' returned non-zero exit status 2
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/slavebin/in-target scan-for-processes --backend=lxd --series=xenial --arch=amd64 SNAPBUILD-290033
Scanning for processes to kill in build SNAPBUILD-290033