Open xin-at-marathon opened 2 years ago
I was trying the same locally with up to date golang, also 1.10 - no luck.
Then I noticed it contains dockerfile in the repo root, built an image from it, installed gcc apk update; apk add gcc
then make build
and it worked
This is extremely gross, and I'm not super well-versed in the go build, but this is how I've gotten it to (seemingly 😅) build cleanly with go1.18.1:
cd "${GOPATH}/src/github.com/kelseyhightower/confd"
go mod init
go mod tidy -e -compat=1.10
go mod vendor 2>&1 | grep 'go get ' | while read LINE; do
sh -c "$LINE"
done
go mod vendor
make
@xin-at-marathon I tried to add go mod and go 1.19 support at #860 , You can use this version to build confd
.
Need @kelseyhightower review.
This is the 1st time I try to build confd.
I follow the instruction:
then I got error:
If I run
go mod init
, I will get:If I run
go mod tidy
, I will get:If I run
make
AGAIN, I'll get this error:any hint? please help.