Hey Team,
I'm building a gitlab ci based pipeline to execute the following sort of commands:
dagger run go ci/main.go lint
dagger run go ci/main.go test
...
Every time these execute, I'm seeing a go mod download run ever execute:
3: go run ci/main.go lint
go: downloading dagger.io/dagger v0.9.3
go: downloading github.com/joho/godotenv v1.5.1
...
To get around this, I'm looking to create a container that gitlab ci uses to execute:
FROM golang:1.21-alpine
WORKDIR /go/src
ENV GOCACHE=/go/src/.cache
RUN mkdir -p /go/src
ADD go.mod .
ADD go.sum .
RUN go mod download
However, when this is being run, I'm still seeing the go mod's being downloaded.
Any ideas on why this is happening / what I need to change?
Thanks
Dinesh