Skip to content

Commit

Permalink
remove tools.go, less dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mvrilo committed Jan 20, 2024
1 parent 2666812 commit d75b3c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1,666 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: all lint test deps

REDOC_PATH=assets/redoc.standalone.js
REDOC_URL=https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js

Expand All @@ -6,10 +8,13 @@ all: $(REDOC_PATH) lint test
lint:
go fmt ./...
go vet ./...
go run github.com/golangci/golangci-lint/cmd/golangci-lint run ./...
golangci-lint run ./...

test:
go test -race ./...

deps:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

$(REDOC_PATH):
curl -sL -o $(REDOC_PATH) $(REDOC_URL)
7 changes: 5 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ module github.com/mvrilo/go-redoc

go 1.16

require github.com/stretchr/testify v1.8.4

require (
github.com/golangci/golangci-lint v1.55.2
github.com/stretchr/testify v1.8.4
github.com/kr/text v0.2.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
)
Loading

0 comments on commit d75b3c7

Please sign in to comment.