pelias / polylines

Pelias import pipeline for polyline (road network) data.
MIT License
17 stars 24 forks source link

Error building Docker image, cannot run `go get github.com/missinglink/pbf` #256

Closed orangejulius closed 3 years ago

orangejulius commented 3 years ago

I was taking a look at merging #255 and noticed the build failed.

Here's the error I see when building both locally and on Circle CI

Step 10/16 : RUN go get github.com/missinglink/pbf
 ---> Running in a6ac9a091fff
package github.com/vmihailenco/msgpack/v5/codes: cannot find package "github.com/vmihailenco/msgpack/v5/codes" in any of:
        /usr/local/go/src/github.com/vmihailenco/msgpack/v5/codes (from $GOROOT)
        /go/src/github.com/vmihailenco/msgpack/v5/codes (from $GOPATH)
package github.com/cpuguy83/go-md2man/v2/md2man: cannot find package "github.com/cpuguy83/go-md2man/v2/md2man" in any of:
        /usr/local/go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOROOT)
        /go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOPATH)
The command '/bin/sh -c go get github.com/missinglink/pbf' returned a non-zero code: 1
orangejulius commented 3 years ago

@missinglink if you get a chance can you take a look at this build error? I don't really speak Go dependencies :( :clinking_glasses:

missinglink commented 3 years ago

This is most likely due to https://github.com/missinglink/pbf/pull/23

I added an extra line to the README export GO111MODULE=on which I think is required on older versions of Go.

https://github.com/missinglink/pbf#installation

missinglink commented 3 years ago

I'll open a PR to fix it