Bug#922842: ITP: golang-github-containers-image -- Work with containers' images
Build is failing. If I'm right, fetching the vendor components is missing. But I don't know how to get it in...
BTW, please make sure that your packaging is not affected by issue 620 [1] of containers/image. The environment where I'm testing is, on purpose, a pristine Debian installation where GOBIN is not part
of PATH.
[1] https://github.com/containers/image/issues/620
Silvano
This is the error message:
dh_auto_build -O--buildsystem=golang -- -tags "containers_image_ostree_stub"
cd obj-x86_64-linux-gnu && go install -gcflags=all=\"-trimpath=/debian-packages/golang-github-containers-image/obj-x86_64-linux-gnu/src\" -asmflags=all=\"-trimpath=/debian-packages/golang-
github-containers-image/obj-x86_64-linux-gnu/src\" -v -p 4 -tags containers_image_ostree_stub github.com/containers/image github.com/containers/image/copy github.com/containers/image/directory
github.com/containers/image/directory/explicitfilepath github.com/containers/image/docker github.com/containers/image/docker/archive github.com/containers/image/docker/daemon
github.com/containers/image/docker/policyconfiguration github.com/containers/image/docker/reference github.com/containers/image/docker/tarfile github.com/containers/image/image
github.com/containers/image/internal/testing/explicitfilepath-tmpdir github.com/containers/image/internal/testing/mocks github.com/containers/image/internal/tmpdir github.com/containers/image/manifest
github.com/containers/image/oci github.com/containers/image/oci/archive github.com/containers/image/oci/internal github.com/containers/image/oci/layout github.com/containers/image/openshift
github.com/containers/image/ostree github.com/containers/image/pkg/blobinfocache github.com/containers/image/pkg/compression github.com/containers/image/pkg/docker/config
github.com/containers/image/pkg/strslice github.com/containers/image/pkg/sysregistries github.com/containers/image/pkg/sysregistriesv2 github.com/containers/image/pkg/tlsclientconfig
github.com/containers/image/signature github.com/containers/image/storage github.com/containers/image/tarball github.com/containers/image/transports
github.com/containers/image/transports/alltransports github.com/containers/image/types github.com/containers/image/version
src/github.com/containers/image/signature/mechanism_gpgme.go:11:2: cannot find package "github.com/mtrmac/gpgme" in any of:
/usr/lib/go-1.11/src/github.com/mtrmac/gpgme (from $GOROOT)
/debian-packages/golang-github-containers-image/obj-x86_64-linux-gnu/src/github.com/mtrmac/gpgme (from $GOPATH)
src/github.com/containers/image/openshift/openshift-copies.go:23:2: cannot find package "k8s.io/client-go/util/homedir" in any of:
/usr/lib/go-1.11/src/k8s.io/client-go/util/homedir (from $GOROOT)
/debian-packages/golang-github-containers-image/obj-x86_64-linux-gnu/src/k8s.io/client-go/util/homedir (from $GOPATH)
dh_auto_build: cd obj-x86_64-linux-gnu && go install -gcflags=all=\"-trimpath=/debian-packages/golang-github-containers-image/obj-x86_64-linux-gnu/src\" -asmflags=all=\"-trimpath=/debian-
packages/golang-github-containers-image/obj-x86_64-linux-gnu/src\" -v -p 4 -tags containers_image_ostree_stub github.com/containers/image github.com/containers/image/copy
github.com/containers/image/directory github.com/containers/image/directory/explicitfilepath github.com/containers/image/docker github.com/containers/image/docker/archive
github.com/containers/image/docker/daemon github.com/containers/image/docker/policyconfiguration github.com/containers/image/docker/reference github.com/containers/image/docker/tarfile
github.com/containers/image/image github.com/containers/image/internal/testing/explicitfilepath-tmpdir github.com/containers/image/internal/testing/mocks github.com/containers/image/internal/tmpdir
github.com/containers/image/manifest github.com/containers/image/oci github.com/containers/image/oci/archive github.com/containers/image/oci/internal github.com/containers/image/oci/layout
github.com/containers/image/openshift github.com/containers/image/ostree github.com/containers/image/pkg/blobinfocache github.com/containers/image/pkg/compression
github.com/containers/image/pkg/docker/config github.com/containers/image/pkg/strslice github.com/containers/image/pkg/sysregistries github.com/containers/image/pkg/sysregistriesv2
github.com/containers/image/pkg/tlsclientconfig github.com/containers/image/signature github.com/containers/image/storage github.com/containers/image/tarball github.com/containers/image/transports
github.com/containers/image/transports/alltransports github.com/containers/image/types github.com/containers/image/version returned exit code 1
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
On Thu, 2019-02-21 at 06:49 -0500, Reinhard Tartler wrote:
> Package: wnpp
> Severity: wishlist
> Owner: Reinhard Tartler <siretart@tauware.de>
>
> * Package name : golang-github-containers-image
> Version : 1.2+git20181221.f0cbc16-1
> Upstream Author : Antonio Murdaca <runcom@redhat.com>
> Brandon Philips <brandon.philips@coreos.com>
> Miloslav Trmac <mitr@redhat.com>
> Dan Walsh <dwalsh@redhat.com>
> Nalin Dahyabhai <nalin@redhat.com>
> * URL : https://github.com/containers/image
> * License : Apache-2.0
> Programming Lang: Go
> Description : Work with containers' images
>
> This library is aimed at working in various way with containers' images
> and container image registries. Itallows application to pull and push
> images from container image registries, like the upstream docker
> registry, and also implements "simple image signing".
>
> Please see
> https://www.redhat.com/en/blog/working-container-storage-library-and-tools-red-hat-enterprise-linux
> for some more background on this library. It is a dependency for
> skopeo, podman and buildah.
>
> This package is going to be maintained within the go team on salsa:
> https://salsa.debian.org/go-team/packages/golang-github-containers-image
>
Reply to: