#Pkg utilizing go-json-experiment jsonv2 failing to build
8 messages · Page 1 of 1 (latest)
Whats the version of Go in the docker? slices is a new package from 1.21
(same for cmp)
Well i set it to 1:21 in dockerfile
But it seems it to build with 1.18 for some reason
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