From a0398dc7e5e7e1933530127c268b819e13f7e1a5 Mon Sep 17 00:00:00 2001 From: Donaldson Date: Fri, 10 Dec 2021 14:20:31 -0800 Subject: [PATCH] Change how dependencies are installed --- .gitlab-ci.yml | 2 +- build/package/Containerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61bc92d..35dbfab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ test: - main - merge_requests script: - - go get github.com/go-redis/redis/v8 + - go get ./... - go test ./... push: diff --git a/build/package/Containerfile b/build/package/Containerfile index c906592..4be0934 100644 --- a/build/package/Containerfile +++ b/build/package/Containerfile @@ -7,14 +7,14 @@ COPY example-puzzles /target/puzzles/ COPY LICENSE.md /target/ RUN mkdir -p /target/state WORKDIR /src/ -RUN go get github.com/go-redis/redis/v8 +#RUN go get github.com/go-redis/redis/v8 +RUN go get ./... RUN CGO_ENABLED=0 GOOS=linux go install -a -ldflags '-extldflags "-static"' ./... # I can't use /target/bin: doing so would cause the devel server to overwrite Ubuntu's /bin ########## FROM builder AS tester -RUN go get github.com/go-redis/redis/v8 RUN go test ./... ##########