Singularity: Install of 3.2.1 from tarball error

Created on 29 May 2019  路  7Comments  路  Source: hpcng/singularity

Version of Singularity:

3.2.1 release

Expected behavior

Installs cleanly

Actual behavior

...
=> /go/src/github.com/sylabs/singularity/builddir/Makefile ready, try:
   $ cd /go/src/github.com/sylabs/singularity/builddir
   $ make
make: Entering directory '/go/src/github.com/sylabs/singularity/builddir'
flag provided but not defined: -deps
usage: list [-e] [-f format] [-json] [build flags] [packages]
Run 'go help list' for details.
flag provided but not defined: -deps
usage: list [-e] [-f format] [-json] [build flags] [packages]
Run 'go help list' for details.
 GO singularity
    [+] GO_TAGS "containers_image_openpgp sylog apparmor selinux"
can't load package: package /go/src/github.com/sylabs/singularity/cmd/singularity: import "/go/src/github.com/sylabs/singularity/cmd/singularity": cannot import absolute path
make: *** [Makefile:154: singularity] Error 1
make: Leaving directory '/go/src/github.com/sylabs/singularity/builddir'

Is there an updated install routine for the new release? I didn't have issue when running on my local machine from a branch, but did when trying to install into a Docker container.

Most helpful comment

Thanks, @truatpasteurdotfr already nailed it :)

All 7 comments

maybe the go version in the container is too old?

What version is needed?

I'm using the iron-go:dev image

/go # go version
go version go1.10.2 linux/amd64

I am using go version go1.11.5 linux/amd64 on c7

That did the trick! Thanks @truatpasteurdotfr

@vsoch go 1.11 or newer is required.

Thanks, @truatpasteurdotfr already nailed it :)

Was this page helpful?
0 / 5 - 0 ratings