inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
395 stars 182 forks source link

unknown field 'SameSite' in struct literal of type http.Cookie #47

Open mrlexor opened 4 years ago

mrlexor commented 4 years ago

Hello. I have copied your Dockerfile and executed: docker build -t prometheus_bot:latest . Then I have received message about error:

 ...
github.com/ugorji/go/codec
github.com/gin-gonic/gin/binding
github.com/gin-gonic/gin/render
github.com/gin-gonic/gin
# github.com/gin-gonic/gin
/go/src/github.com/gin-gonic/gin/context.go:778:91: undefined: http.SameSite
/go/src/github.com/gin-gonic/gin/context.go:788:11: unknown field 'SameSite' in struct literal of type http.Cookie
The command '/bin/sh -c cd / &&     apk update &&     apk add --no-cache git ca-certificates make tzdata &&     git clone https://github.com/inCaller/prometheus_bot &&     cd prometheus_bot &&     go get -d -v &&     CGO_ENABLED=0 GOOS=linux go build -v -a -installsuffix cgo -o prometheus_bot' returned a non-zero code: 2
lstday commented 4 years ago

Try to use 1.11.13-alpine3.9 in Dockerfile (as builder).

mrlexor commented 4 years ago

Yes, I will, but I wrote to you in order to make changes to your Dockerfile.