11version : 2.1
22orbs :
3- go : gotest/tools@0.0.13
43 aws-cli : circleci/aws-cli@1.3.2
54
65executors :
76 golang :
87 docker :
9- - image : circleci/golang :1.16.4
8+ - image : cimg/go :1.17.9
109 resource_class : 2xlarge
1110 ubuntu :
1211 docker :
@@ -25,8 +24,9 @@ executors:
2524commands :
2625 install-deps :
2726 steps :
28- - go/install-ssh
29- - go/install : {package: git}
27+ - run : |
28+ sudo apt update
29+ sudo apt install python-is-python3
3030 prepare :
3131 parameters :
3232 linux :
@@ -68,14 +68,14 @@ commands:
6868 - run : |
6969 apt update
7070 apt install -y wget
71- wget https://github.com/ipfs/go-ipfs/releases/download/v0.4.22 /go-ipfs_v0.4.22_linux -amd64.tar.gz
72- wget https://github.com/ipfs/go-ipfs/releases/download/v0.4.22 /go-ipfs_v0.4.22_linux -amd64.tar.gz.sha512
73- if [ "$(sha512sum go-ipfs_v0.4.22_linux -amd64.tar.gz)" != "$(cat go-ipfs_v0.4.22_linux -amd64.tar.gz.sha512)" ]
71+ wget https://github.com/ipfs/go-ipfs/releases/download/v0.12.2 /go-ipfs_v0.12.2_linux -amd64.tar.gz
72+ wget https://github.com/ipfs/go-ipfs/releases/download/v0.12.2 /go-ipfs_v0.12.2_linux -amd64.tar.gz.sha512
73+ if [ "$(sha512sum go-ipfs_v0.12.2_linux -amd64.tar.gz)" != "$(cat go-ipfs_v0.12.2_linux -amd64.tar.gz.sha512)" ]
7474 then
7575 echo "ipfs failed checksum check"
7676 exit 1
7777 fi
78- tar -xf go-ipfs_v0.4.22_linux -amd64.tar.gz
78+ tar -xf go-ipfs_v0.12.2_linux -amd64.tar.gz
7979 mv go-ipfs/ipfs /usr/local/bin/ipfs
8080 chmod +x /usr/local/bin/ipfs
8181 git_fetch_all_tags :
@@ -116,8 +116,12 @@ jobs:
116116 steps :
117117 - install-deps
118118 - prepare
119- - go/mod-tidy-check
120-
119+ - run : go mod tidy -v
120+ - run :
121+ name : Check git diff
122+ command : |
123+ git --no-pager diff go.mod go.sum
124+ git --no-pager diff --quiet go.mod go.sum
121125 build-all :
122126 executor : golang
123127 steps :
@@ -194,9 +198,6 @@ jobs:
194198 command : make deps lotus
195199 no_output_timeout : 30m
196200 - download-params
197- - go/install-gotestsum :
198- gobin : $HOME/.local/bin
199- version : 0.5.2
200201 - run :
201202 name : go test
202203 environment :
@@ -222,8 +223,6 @@ jobs:
222223 - when :
223224 condition : << parameters.codecov-upload >>
224225 steps :
225- - go/install : {package: bash}
226- - go/install : {package: curl}
227226 - run :
228227 shell : /bin/bash -eo pipefail
229228 command : |
@@ -262,9 +261,6 @@ jobs:
262261 cd extern/test-vectors
263262 git fetch
264263 git checkout origin/<< parameters.vectors-branch >>
265- - go/install-gotestsum :
266- gobin : $HOME/.local/bin
267- version : 0.5.2
268264 - run :
269265 name : install statediff globally
270266 command : |
@@ -377,8 +373,8 @@ jobs:
377373 - run :
378374 name : Install go
379375 command : |
380- curl -O https://dl.google.com/go/go1.16.4 .darwin-amd64.pkg && \
381- sudo installer -pkg go1.16.4 .darwin-amd64.pkg -target /
376+ curl -O https://dl.google.com/go/go1.17.9 .darwin-amd64.pkg && \
377+ sudo installer -pkg go1.17.9 .darwin-amd64.pkg -target /
382378 - run :
383379 name : Install pkg-config
384380 command : HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config
@@ -519,9 +515,6 @@ jobs:
519515 executor :
520516 type : executor
521517 default : golang
522- golangci-lint-version :
523- type : string
524- default : 1.27.0
525518 concurrency :
526519 type : string
527520 default : ' 2'
@@ -540,13 +533,10 @@ jobs:
540533 - run :
541534 command : make deps
542535 no_output_timeout : 30m
543- - go/install-golangci-lint :
544- gobin : $HOME/.local/bin
545- version : << parameters.golangci-lint-version >>
546536 - run :
547537 name : Lint
548538 command : |
549- $HOME/.local/bin/ golangci-lint run -v --timeout 2m \
539+ golangci-lint run -v --timeout 2m \
550540 --concurrency << parameters.concurrency >> << parameters.args >>
551541 lint-all :
552542 << : *lint
0 commit comments