Skip to content

Commit 92dbc71

Browse files
committedJul 13, 2022
Drop golangci-lint from image build
Installing it is flaky and regularly breaks Prow and/or CoreOS CI. I think the main issue for Prow is that the install script uses the GitHub API anonymously and we get rate limited. Looking at the official docs, they recommend using the GitHub Action instead so let's do that in a follow-up (and have it run over the whole repo instead of just the gangplank code).
1 parent f60412d commit 92dbc71

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed
 

‎Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ gangplank:
7575
gangplank-check:
7676
cd gangplank && $(MAKE) test
7777

78-
staticanalysis:
79-
cd gangplank && $(MAKE) staticanalysis
80-
8178
tools:
8279
cd tools && $(MAKE)
8380

‎ci/prow.sh

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
set -xeuo pipefail
33
make -j 4
44
make check
5-
make staticanalysis

‎gangplank/Makefile

-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ docs:
2626
fmt:
2727
gofmt -d -e -l $(shell find . -iname "*.go" -not -path "./vendor/*")
2828

29-
.PHONY: staticanalysis
30-
staticanalysis:
31-
golangci-lint run -v --build-tags ${buildtags},gangway ./...
32-
env CGO_ENABLED=0 golangci-lint run -v --build-tags ${buildtags},gangway ./...
33-
3429
.PHONY: test
3530
test: miniotag ?= ",!minio"
3631
test: fmt

‎tools/Makefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export GOPATH=$(shell readlink -f .)
88
GOARCH := $(shell go env GOARCH)
99
build:
1010
mkdir -p bin
11-
test -e bin/golangci-lint || \
12-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin
1311
test -f bin/schematyper || \
1412
go install github.com/idubinskiy/schematyper@latest
1513
test -e bin/gomarkdoc || \
@@ -24,5 +22,5 @@ clean:
2422
rm -rfv bin
2523
rm -rfv pkg
2624

27-
install: bin/golangci-lint bin/gomarkdoc bin/minio bin/schematyper
28-
install -v -D -t $(DESTDIR)$(PREFIX)/bin bin/{golangci-lint,gomarkdoc,minio,schematyper}
25+
install: bin/gomarkdoc bin/minio bin/schematyper
26+
install -v -D -t $(DESTDIR)$(PREFIX)/bin bin/{gomarkdoc,minio,schematyper}

‎tools/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
This directory contains Golang Tools that are needed for building/using
44
`gangplank`, generating schemas, or generating Markdown documentation.
55

6-
- golangci-lint
76
- gomarkdoc
87
- minio
9-
- schematyper
8+
- schematyper

0 commit comments

Comments
 (0)
Please sign in to comment.