Skip to content

Commit 2561a4b

Browse files
committed
[FAB-9667] temporary workaround for golint breakage
as suggested by golang/lint#397 Change-Id: Ib70aeac594e5c02e45226c77fe33d8f5df26445d Signed-off-by: Srinivasan Muralidharan <srinivasan.muralidharan99@gmail.com>
1 parent 2a63e26 commit 2561a4b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gotools.mk

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ go.fqp.counterfeiter := github.com/maxbrunsfeld/counterfeiter
1313
go.fqp.gocov := github.com/axw/gocov/gocov
1414
go.fqp.gocov-xml := github.com/AlekSi/gocov-xml
1515
go.fqp.goimports := golang.org/x/tools/cmd/goimports
16-
go.fqp.golint := github.com/golang/lint/golint
16+
#-----temporarty workaround for FAB-9667---
17+
#go.fqp.golint := github.com/golang/lint/golint
1718
go.fqp.misspell := github.com/client9/misspell/cmd/misspell
1819
go.fqp.mockery := github.com/vektra/mockery/cmd/mockery
1920
go.fqp.manifest-tool := github.com/estesp/manifest-tool
@@ -25,6 +26,11 @@ gotools-install: $(patsubst %,$(GOTOOLS_BINDIR)/%, $(GOTOOLS))
2526
gotools-clean:
2627
-@rm -rf $(BUILD_DIR)/gotools
2728

29+
#-----temporarty workaround for FAB-9667---
30+
gotool.golint:
31+
@git clone https://github.com/golang/lint.git $(GOTOOLS_GOPATH)/src/golang.org/x/lint
32+
@GOPATH=$(abspath $(GOTOOLS_GOPATH)) GOBIN=$(abspath $(GOTOOLS_BINDIR)) go install golang.org/x/lint/golint
33+
2834
# Special override for protoc-gen-go since we want to use the version vendored with the project
2935
gotool.protoc-gen-go:
3036
@echo "Building github.com/golang/protobuf/protoc-gen-go -> protoc-gen-go"

0 commit comments

Comments
 (0)