From 37799e3d8e98a9ca0af0f797015dd8afff8d9946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Sun, 22 Aug 2021 12:21:12 -1000 Subject: [PATCH] Update to go 1.17 --- .drone.yml | 4 ++-- dev.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index ed8ea40..6146be5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,10 +16,10 @@ steps: - npm run-script build - name: backend - image: golang:1.16.7-alpine3.14 + image: golang:1.17.0-alpine3.14 commands: - apk --no-cache add git - - GO111MODULE=off go get -tags 'postgres' -u github.com/golang-migrate/migrate/cmd/migrate + - go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest - cp $$GOPATH/bin/migrate migrate - CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -trimpath -v -o canapeapp/app backend/*.go diff --git a/dev.sh b/dev.sh index 5be9cb9..9f4f0e0 100755 --- a/dev.sh +++ b/dev.sh @@ -69,9 +69,9 @@ _ensure_command npm _check_command migrate || { _log_info "Installing migrate" - GO111MODULE=off \ - go get -tags 'postgres' \ - -u -v github.com/golang-migrate/migrate/cmd/migrate + go install \ + -tags 'postgres' \ + github.com/golang-migrate/migrate/v4/cmd/migrate@latest } _check_command fresh || {