communitytools-image2docker-linux
communitytools-image2docker-linux copied to clipboard
golang 1.7 causes IsAlias error
Ubuntu 16.04 LTS
git clone https://github.com/docker/communitytools-image2docker-linux
cd communitytools-image2docker-linux
make prepare
Sending build context to Docker daemon 51.82MB
Step 1/2 : FROM golang:1.7
---> 225948c9a8b1
Step 2/2 : RUN go get -u github.com/rancher/trash && go get -u github.com/golang/lint/golint
---> Running in 1cc869ecca54
# golang.org/x/tools/go/internal/gcimporter
src/golang.org/x/tools/go/internal/gcimporter/bexport.go:212: obj.IsAlias undefined (type *types.TypeName has no field or method IsAlias)
The command '/bin/sh -c go get -u github.com/rancher/trash && go get -u github.com/golang/lint/golint' returned a non-zero code: 2
I fixed it with: tooling/tooling.df: FROM golang:1.11