From 27c375144cb96e96ad710561c94df6957c9d0f2e Mon Sep 17 00:00:00 2001 From: tavo Date: Sun, 22 Sep 2024 10:13:34 -0600 Subject: [PATCH] goversion --- Dockerfile | 2 +- Makefile | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f2e62df..a0bd1b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19 +FROM golang:1.22.7 WORKDIR /conex-builder COPY . . RUN make diff --git a/Makefile b/Makefile index b2f8bde..f4a558e 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ SRC = ${SRCDIR}/main.go \ ${SRCDIR}/auth.go \ ${SRCDIR}/bucket.go \ +GO = go GOFILES = ${SRCDIR}/go.sum ${SRCDIR}/go.mod GOMODS = github.com/joho/godotenv \ github.com/lib/pq \ @@ -18,7 +19,7 @@ GOMODS = github.com/joho/godotenv \ all: ${BIN} fmt ${BIN}: ${SRC} ${GOFILES} - (cd ${SRCDIR} && go build -o ../${BIN}) + (cd ${SRCDIR} && ${GO} build -o ../${BIN}) fmt: ${SRC} @diff=$$(gofmt -d $^); \ @@ -28,8 +29,8 @@ fmt: ${SRC} fi ${GOFILES}: - (cd ${SRCDIR} && go mod init ${BIN}) - (cd ${SRCDIR} && go get ${GOMODS}) + (cd ${SRCDIR} && ${GO} mod init ${BIN}) + (cd ${SRCDIR} && ${GO} get ${GOMODS}) start: ${BIN} @./$< &