"snapcraft cleanbuild" requires "connectivity"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Won't Fix
|
Medium
|
Sergio Schvezov |
Bug Description
To build a snap reliably and reproducibly, I've adjusted snapcraft.yaml so that it doesn't require an Internet connection to random third parties, and am behind a firewall that enforces this.
Recently this started failing.
It appears that you've been requiring a "connectivity check" for a while that was to start.ubuntu.com (which happens to be allowed in my case), but this has recently changed to connectivity-
It doesn't make sense to ask for the firewall to be permitted to access connectivity-
Expected results: "snapcraft cleanbuild" is capable of building without Internet access when such Internet access isn't required by the build.
Actual results:
$ snapcraft cleanbuild
Creating snapcraft-
Starting snapcraft-
Waiting for a network connection...
Failed to open 'http://
Failed to open 'http://
Failed to open 'http://
Failed to open 'http://
Failed to open 'http://
Stopping local:snapcraft
Sorry, an error occurred in Snapcraft:
Failed to get a network connection in the container: could not successfully ping 'start.ubuntu.com'.
If using a proxy, check its configuration. Refer to the documentation at https:/
Note that the error message is also wrong now, referring to start.ubuntu.com when snapcraft is actually trying to reach connectivity-
Sample snapcraft.yaml that triggers this:
name: test-snap
version: '1'
summary: Test snap summary
description: |
Test snap description
grade: devel
confinement: classic
parts:
part1:
plugin: nil
source: .
Note that there is no base.
Version:
installed: 4.2.post13+ gitab04b216 (5447) 70MB classic