File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 7
7
executors :
8
8
golang :
9
9
docker :
10
- - image : golang:1.15 -buster
10
+ - image : golang:1.16 -buster
11
11
auth :
12
12
username : $DOCKERHUB_USER
13
13
password : $DOCKERHUB_PASSWORD
14
14
working_directory : /go/src/go.lsp.dev/protocol
15
15
16
16
command_vars :
17
- - cache_key : &cache_key go-mod-v1 -{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
18
- - cache_tools_key : &cache_tools_key go-tools-v1 -{{ checksum "tools/go.mod" }}-{{ checksum "tools/go.sum" }}
17
+ - cache_key : &cache_key v1- go-mod-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
18
+ - cache_tools_key : &cache_tools_key v1- go-tools-{{ checksum "tools/go.mod" }}-{{ checksum "tools/go.sum" }}
19
19
20
20
commands :
21
21
restore_dependencies :
@@ -43,7 +43,6 @@ commands:
43
43
- run :
44
44
name : " Download dependency tools"
45
45
command : |
46
- find /go/bin/ -mindepth 1 -type f -executable | head -1
47
46
if [ -z $(find ./tools/bin/ -mindepth 1 -type f -executable | head -1) ]; then
48
47
make -j${CPUS} tools
49
48
fi
@@ -132,7 +131,6 @@ jobs:
132
131
name : Run fmt and lint for sources
133
132
command : |
134
133
make lint GO_LINT_FLAGS="$(circleci tests split .circleci/lint-buildtags)" JOBS=${CPUS}
135
- git add -N . && git diff --exit-code
136
134
- save_cache :
137
135
name : " Save module cache"
138
136
key : *cache_key
Original file line number Diff line number Diff line change @@ -116,15 +116,13 @@ tools/%: ## install an individual dependent tool
116
116
@${MAKE} tools/bin/$* 1> /dev/null
117
117
118
118
tools/bin/% : ${TOOLS_DIR}/go.mod ${TOOLS_DIR}/go.sum
119
- @if [ -z ' ${CI}' ]; then \
120
- cd tools; \
121
- for t in ${TOOLS} ; do \
122
- if [ -z ' $*' ] || [ $$ (basename $$ t) = ' $*' ]; then \
123
- echo " Install $$ t ..." >&2 ; \
124
- GOBIN=${TOOLS_BIN} CGO_ENABLED=0 go install -v -mod=mod ${GO_FLAGS} " $$ {t}" ; \
125
- fi \
126
- done \
127
- fi
119
+ cd tools; \
120
+ for t in ${TOOLS} ; do \
121
+ if [ -z ' $*' ] || [ $$ (basename $$ t) = ' $*' ]; then \
122
+ echo " Install $$ t ..." >&2 ; \
123
+ GOBIN=${TOOLS_BIN} CGO_ENABLED=0 go install -v -mod=mod ${GO_FLAGS} " $$ {t}" ; \
124
+ fi \
125
+ done
128
126
129
127
130
128
# #@ clean
You can’t perform that action at this time.
0 commit comments