I am building a snap that has a dependency on
git. Git as we may all know exists in the main repos.
When I run
snapcraft --use-lxd --debug to build the snap, I get the error posted below. While in the debug container if I run
apt search git, git does show up in the container. And is also already installed due to a dependency for the go plugin. This implies that 1) the package exists, and 2) there is connectivity in the container. (Plus my additional ping test below).
In the debug container…
# snapcraft --version snapcraft, version 3.11
On my host system…
❯ snapcraft --version snapcraft, version 4.0.2
Failed to fetch stage packages: Error downloading packages for part 'fac': The package 'git' was not found..
name: fac base: core18 version: "2.0.0" # https://github.com/snapcore/snapd/blob/master/spdx/licenses.go license: "MIT" summary: Easy-to-use CUI for fixing git conflicts description: | Fac is an easy-to-use CUI for fixing git conflicts written in Go. grade: stable confinement: strict architectures: - build-on: amd64 plugs: dot-fac-yml: interface: personal-files read: - $HOME/.fac.yml dot-gitconfig: interface: personal-files read: [$HOME/.gitconfig] apps: fac: command: bin/fac plugs: - network - home - dot-fac-yml - dot-gitconfig parts: # go: # source-tag: go1.10.1 fac: plugin: go # after: [go] source: https://github.com/mkchoi212/fac.git source-type: git go-importpath: github.com/mkchoi212/fac stage-packages: - git
Connectivity from the container
# ping 220.127.116.11 PING 18.104.22.168 (22.214.171.124): 56 data bytes 64 bytes from 126.96.36.199: icmp_seq=0 ttl=55 time=8.353 ms 64 bytes from 188.8.131.52: icmp_seq=1 ttl=55 time=7.365 ms 64 bytes from 184.108.40.206: icmp_seq=2 ttl=55 time=7.121 ms