#Pkg utilizing go-json-experiment jsonv2 failing to build

8 messages · Page 1 of 1 (latest)

grim hedge
#

Building on docker

keen remnant
#

(same for cmp)

grim hedge
#

Well i set it to 1:21 in dockerfile

#

But it seems it to build with 1.18 for some reason

keen remnant
#

Can you show the dockerfile?

grim hedge
# keen remnant Can you show the dockerfile?
FROM golang:1.21-alpine

# install git for golang dependencies and curl for air
RUN apk --no-cache add git curl

# Set github details for golang dependencies
ARG GITHUB_TOKEN
RUN git config --global url."https://$GITHUB_TOKEN:@github.com/".insteadOf "https://github.com/"

# Set working directory as project source volume mounted on /app
WORKDIR /app 

# Install air
RUN go install github.com/cosmtrek/air@latest

COPY go.mod go.sum ./
RUN go mod download

CMD ["air", "-c", ".air.toml"]
#

I think i fixed it