Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
with:
go-version: stable
- name: Check tools/go.mod
working-directory: tools
run: |
go mod tidy -diff
run: make tidy-tools

lint-go:
name: Lint Go
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all install tidy build lint fmt test docker-build docker-run docker-smoke
.PHONY: all tidy tidy-tools build lint fmt test docker-build docker-run docker-smoke

GIT_COMMIT ?= $(shell git rev-parse --verify HEAD)
GIT_VERSION ?= $(shell git describe --tags --always --dirty="-dev")
Expand All @@ -11,12 +11,12 @@ VERSION_FLAGS := -X "github.com/mgechev/revive/cli.version=$(GIT_VERSION)" -X "g

all: test lint build

install:
@go mod vendor

tidy:
@go mod tidy -diff

tidy-tools:
@go -C tools mod tidy -diff

build: tidy
@go build -ldflags='$(VERSION_FLAGS)'

Expand Down
Loading