From c4d4110597a54a41c084b5c3b1e2f7e126e6d83d Mon Sep 17 00:00:00 2001 From: Mikers Date: Tue, 8 Aug 2023 13:12:53 -1000 Subject: [PATCH 1/3] increase golang version to 1.19.12 --- .circleci/config.yml | 4 ++-- .circleci/template.yml | 4 ++-- Dockerfile | 2 +- GO_VERSION_MIN | 2 +- README.md | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5fcb831454c..b1566e6b0cf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,12 +7,12 @@ executors: golang: docker: # Must match GO_VERSION_MIN in project root - - image: cimg/go:1.19.7 + - image: cimg/go:1.19.12 resource_class: medium+ golang-2xl: docker: # Must match GO_VERSION_MIN in project root - - image: cimg/go:1.19.7 + - image: cimg/go:1.19.12 resource_class: 2xlarge ubuntu: docker: diff --git a/.circleci/template.yml b/.circleci/template.yml index cd8aeb663c9..33f62ee3ad8 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -7,12 +7,12 @@ executors: golang: docker: # Must match GO_VERSION_MIN in project root - - image: cimg/go:1.19.7 + - image: cimg/go:1.19.12 resource_class: medium+ golang-2xl: docker: # Must match GO_VERSION_MIN in project root - - image: cimg/go:1.19.7 + - image: cimg/go:1.19.12 resource_class: 2xlarge ubuntu: docker: diff --git a/Dockerfile b/Dockerfile index dfdfedce328..ed0f711f6b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ##################################### -FROM golang:1.19.7-buster AS lotus-builder +FROM golang:1.19.12-buster AS lotus-builder MAINTAINER Lotus Development Team RUN apt-get update && apt-get install -y ca-certificates build-essential clang ocl-icd-opencl-dev ocl-icd-libopencl1 jq libhwloc-dev diff --git a/GO_VERSION_MIN b/GO_VERSION_MIN index 98adfe8e122..e54f3135a7d 100644 --- a/GO_VERSION_MIN +++ b/GO_VERSION_MIN @@ -1 +1 @@ -1.19.7 +1.19.12 diff --git a/README.md b/README.md index b67cb952f18..f6ac7593222 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,10 @@ For other distributions you can find the required dependencies [here.](https://l #### Go -To build Lotus, you need a working installation of [Go 1.19.7 or higher](https://golang.org/dl/): +To build Lotus, you need a working installation of [Go 1.19.12 or higher](https://golang.org/dl/): ```bash -wget -c https://golang.org/dl/go1.19.7.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local +wget -c https://golang.org/dl/go1.19.12.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local ``` **TIP:** From 447bd1fd7597f7cf54364eb0870e4be904d8cabe Mon Sep 17 00:00:00 2001 From: Mikers Date: Tue, 8 Aug 2023 13:29:29 -1000 Subject: [PATCH 2/3] remove deprecated structchecklinter, TOOD add support for linter named "unused" --- .golangci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index fe663ef7b1f..a4cca9babd0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,7 +12,6 @@ linters: - unconvert - staticcheck - varcheck - - structcheck - deadcode - scopelint From f0b3998c33ff6eb7b3e045fe20eb36c0b499a632 Mon Sep 17 00:00:00 2001 From: Mikers Date: Fri, 1 Sep 2023 15:19:33 -1000 Subject: [PATCH 3/3] add unused lint check --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index a4cca9babd0..1d455e52559 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,6 +14,7 @@ linters: - varcheck - deadcode - scopelint + - unused # We don't want to skip builtin/ skip-dirs-use-default: false