Skip to content

Commit 0054817

Browse files
committed
tools: add tools module
1 parent 0212a03 commit 0054817

File tree

5 files changed

+439
-0
lines changed

5 files changed

+439
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ _testmain.go
4747

4848
# coverage
4949
coverage.*
50+
51+
# tools
52+
bin/

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ test/gojay: test
2525
coverage/ci/gojay: GO_BUILDTAGS+=gojay
2626
coverage/ci/gojay: coverage/ci
2727
$(call target)
28+
29+
.PHONY: tools
30+
tools:
31+
cd tools; \
32+
for t in $$(go list -f '{{ join .Imports " " }}' -tags=tools); do \
33+
GOBIN=${CURDIR}/bin go install -v -x -mod=vendor "$${t}"; \
34+
done

tools/go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module go.lsp.dev/jsonrpc2/tools
2+
3+
go 1.14
4+
5+
require (
6+
github.com/golangci/golangci-lint v1.27.0
7+
gotest.tools/gotestsum v0.4.2
8+
)

0 commit comments

Comments
 (0)