SNAPCRAFT_PARTS_URI doesn't work with cleanbuild

Bug #1719951 reported by Aleix Pol
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Cris Dywan

Bug Description

Was following the instructions here:
https://community.kde.org/Neon/Snap#Building

Here's the output I get:
Setting up xdelta3 (3.0.8-dfsg-1ubuntu2) ...
Setting up python3-libarchive-c (2.1-3) ...
Setting up python3-magic (1:5.25-2ubuntu1) ...
Setting up snapcraft (2.34) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Downloading parts list|
Cannot find the definition for part 'kde-frameworks-5-dev'.
It may be a remote part, run `snapcraft update` to refresh the remote parts cache.
Stopping local:snapcraft-gladly-cuddly-loon
Traceback (most recent call last):
  File "/home/apol/devel/playground/snapcraft/bin/snapcraft", line 36, in <module>
    obj=dict(project=snapcraft.ProjectOptions()))
  File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/apol/devel/playground/snapcraft/snapcraft/cli/lifecycle.py", line 193, in cleanbuild
    lifecycle.cleanbuild(project_options, remote)
  File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lifecycle.py", line 338, in cleanbuild
    metadata=config.get_metadata(), remote=remote).execute()
  File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 167, in execute
    raise e
  File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 161, in execute
    self._container_run(command, cwd=self._project_folder)
  File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 114, in _container_run
    **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'local:snapcraft-gladly-cuddly-loon', '--', 'sh', '-c', 'cd /root/build_kdevelop; snapcraft snap --output kdevelop_5.2_amd64.snap']' returned non-zero exit status 2.

Revision history for this message
Cris Dywan (kalikiana) wrote :

$SNAPCRAFT_PARTS_URI isn't passed down into the LXD container - it needs to be set via "lxc config set" in snapcraft/internal/lxd.py

Changed in snapcraft:
status: New → Confirmed
assignee: nobody → Christian Dywan (kalikiana)
Revision history for this message
Cris Dywan (kalikiana) wrote :
Changed in snapcraft:
status: Confirmed → In Progress
Changed in snapcraft:
importance: Undecided → Medium
milestone: none → 2.35
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.