Skip to content

Commit

Permalink
scheduler: replace retool by go mod (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
unconsolable authored Jan 11, 2022
1 parent 35bbb17 commit 348994c
Show file tree
Hide file tree
Showing 8 changed files with 290 additions and 64 deletions.
8 changes: 0 additions & 8 deletions scheduler/scripts/retool

This file was deleted.

27 changes: 0 additions & 27 deletions scheduler/scripts/retool-install.sh

This file was deleted.

29 changes: 0 additions & 29 deletions scheduler/tools.json

This file was deleted.

1 change: 1 addition & 0 deletions scheduler/tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
19 changes: 19 additions & 0 deletions scheduler/tools/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
all: bin/govet bin/overalls bin/golangci-lint bin/revive bin/failpoint-ctl bin/goimports

bin/govet:
go build -o $@ github.com/dnephin/govet

bin/overalls:
go build -o $@ github.com/go-playground/overalls

bin/golangci-lint:
go build -o $@ github.com/golangci/golangci-lint/cmd/golangci-lint

bin/revive:
go build -o $@ github.com/mgechev/revive

bin/failpoint-ctl:
go build -o $@ github.com/pingcap/failpoint/failpoint-ctl

bin/goimports:
go build -o $@ golang.org/x/tools/cmd/goimports
15 changes: 15 additions & 0 deletions scheduler/tools/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module github.com/pingcap-incubator/tinykv/scheduler/_tools

go 1.13

require (
github.com/dnephin/govet v0.0.0-20171012192244-4a96d43e39d3
github.com/go-playground/overalls v0.0.0-20180201144345-22ec1a223b7c
github.com/golangci/golangci-lint v1.17.0
github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 // indirect
github.com/mgechev/revive v0.0.0-20180723234540-7773f47324c2
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pingcap/failpoint v0.0.0-20190512135322-30cc7431d99c
golang.org/x/tools v0.0.0-20190420000508-685fecacd0a0
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
)
243 changes: 243 additions & 0 deletions scheduler/tools/go.sum

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions scheduler/tools/mod_guard.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// +build modguard

package tools

import (
_ "github.com/dnephin/govet"
_ "github.com/go-playground/overalls"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/mgechev/revive"
_ "github.com/pingcap/failpoint/failpoint-ctl"
_ "golang.org/x/tools/cmd/goimports"
)

0 comments on commit 348994c

Please sign in to comment.