Skip to content

Commit

Permalink
🌱 Move tool dependencies into go.mod
Browse files Browse the repository at this point in the history
Moved the tool dependencies into go.mod
  • Loading branch information
naveensrinivasan committed May 16, 2021
1 parent ba3b5c5 commit 7ed0179
Show file tree
Hide file tree
Showing 4 changed files with 510 additions and 18 deletions.
15 changes: 5 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,9 @@ help: ## Display this help
################################ make install #################################
.PHONY: install
install: ## Installs all dependencies needed to compile Scorecard
install: | $(GINKGO) $(GOLANGGCI_LINT) $(PROTOC_GEN_GO) $(PROTOC)

$(GINKGO):
go get -u github.com/onsi/ginkgo/ginkgo@v1.16.2

$(GOLANGGCI_LINT):
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.40.0

$(PROTOC_GEN_GO):
go install google.golang.org/protobuf/cmd/protoc-gen-go
install: | $(PROTOC)
@echo Installing tools from tools.go
@cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install %

$(PROTOC):
ifeq (,$(PROTOC))
Expand Down Expand Up @@ -75,6 +68,8 @@ validate-projects: build-scripts
tree-status: ## Verify tree is clean and all changes are committed
# Verify the tree is clean and all changes are commited
./scripts/tree-status


###############################################################################

############################### make build ################################
Expand Down
8 changes: 2 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module github.com/ossf/scorecard
go 1.16

require (
github.com/aws/aws-sdk-go v1.36.30 // indirect
github.com/bradleyfalzon/ghinstallation v1.1.1
github.com/golang/protobuf v1.5.2
github.com/golangci/golangci-lint v1.40.1
github.com/google/go-github/v32 v32.1.0
github.com/jszwec/csvutil v1.5.0
github.com/kr/text v0.2.0 // indirect
github.com/naveensrinivasan/httpcache v1.2.2
github.com/onsi/ginkgo v1.16.2
github.com/onsi/gomega v1.12.0
Expand All @@ -16,16 +16,12 @@ require (
github.com/shurcooL/githubv4 v0.0.0-20200928013246-d292edc3691b
github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect
github.com/spf13/cobra v1.1.3
github.com/stretchr/testify v1.7.0 // indirect
go.uber.org/zap v1.16.0
gocloud.dev v0.22.0
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 // indirect
golang.org/x/oauth2 v0.0.0-20201203001011-0b49973bad19
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015 // indirect
golang.org/x/tools v0.1.1 // indirect
google.golang.org/protobuf v1.26.0
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
honnef.co/go/tools v0.1.4 // indirect
)
Loading

0 comments on commit 7ed0179

Please sign in to comment.