From 54cda9bc3a5ca575b7fcc0a55832ea93347eb25a Mon Sep 17 00:00:00 2001 From: Cristina Leon Date: Thu, 24 Aug 2023 13:28:41 +0000 Subject: [PATCH] Update go version to 1.20 --- .github/workflows/coverage.yml | 2 +- .github/workflows/privacy.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b8cebab..0a9a50f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: "1.18.3" + go-version: "1.20" - uses: actions/checkout@v2 - run: go test -race -v -coverprofile=dash.cov -coverpkg=./... ./... - uses: shogo82148/actions-goveralls@v1 diff --git a/.github/workflows/privacy.yml b/.github/workflows/privacy.yml index 777b061..f905457 100644 --- a/.github/workflows/privacy.yml +++ b/.github/workflows/privacy.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: "1.18.3" + go-version: "1.20" - uses: actions/checkout@v2 - run: go build -v ./cmd/dash-client - run: | diff --git a/Dockerfile b/Dockerfile index 0152dce..34f3463 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18 as build +FROM golang:1.20 as build ADD . /go/src/github.com/neubot/dash WORKDIR /go/src/github.com/neubot/dash RUN CGO_ENABLED=0 go build -v -tags netgo -ldflags "-s -w -extldflags \"-static\"" ./cmd/dash-server diff --git a/go.mod b/go.mod index 247ce28..a65ea63 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/neubot/dash -go 1.18 +go 1.20 require ( github.com/apex/log v1.9.0