Call for testing: Snapcraft 6.0

Snapcraft 6.0 can now be found on the candidate channel.

Among other changes, this is the release that removes support for i386 and adds support for riscv64.

Refer to the release notes for details.

The estimated date for this release to go to stable is 2021-11-29T03:00:00Z.

2 Likes

Hasn’t broken anything I’m using. :slight_smile:

:frowning: snapcraft 6.0 breaks the build of the MAAS snap, am still investigating root cause.

Building maas 
+ snapcraftctl build
+ python3 -m venv /home/ubuntu/maas/parts/maas/install
+ SNAPCRAFT_PYTHON_VENV_INTERP_PATH=/home/ubuntu/maas/parts/maas/install/bin/python3
+ pip install -U pip setuptools wheel
/home/ubuntu/maas/parts/maas/run/build.sh: line 35: pip: command not found
Failed to build 'maas'.

Recommended resolution:
Check the build logs and ensure the part's configuration and sources are correct.

At a guess, I tried applying https://paste.ubuntu.com/p/PrTmbTCfHp/ this patch which makes it build for snapcraft 6.0 - still needs further testing to ensure the Python bits are setup correctly.

Interesting, the python plugin has not changed at all, but I see how this can be a problem, that dollar SNAP corresponds to snapcraft $SNAP. We probably shouldn’t allow this to begin with.

For building purposes, you might better want to change that to

   maas:
     plugin: python
     source: .
     build-environment:
       - PYTHONPATH: /usr/lib/python3/dist-packages:/usr/lib/python3.8/dist-packages
     requirements:
       - snap/local/requirements.txt
     build-packages:

if the intention was to have built-time only dependencies.

This is now released to latest/stable

1 Like