Skip to content

Commit

Permalink
DXE-3521 Add go mod tidy to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
dawiddzhafarov committed Apr 4, 2024
1 parent 78437e4 commit 983ccdd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ VERSION ?= $(shell git describe --tags --always | grep '^v\d' || \
BIN = $(CURDIR)/bin
GOLANGCI_LINT_VERSION = v1.55.2
GO = go
GOMODTIDY = $(GO) mod tidy
TIMEOUT = 15
V = 0
Q = $(if $(filter 1,$V),,@)
Expand Down Expand Up @@ -42,7 +43,7 @@ $(BIN)/golangci-lint: ; $(info $(M) Installing golangci-lint...) @


.PHONY: all
all: clean fmt-check lint test-verbose create-junit-report create-coverage-files clean-tools
all: clean tidy fmt-check lint test-verbose create-junit-report create-coverage-files clean-tools

# Tests

Expand Down Expand Up @@ -83,6 +84,10 @@ create-coverage-files: | $(GOCOV) $(GOCOVXML); $(info $(M) Creating coverage fil
lint: | $(GOLANGCILINT) ; $(info $(M) Running golangci-lint...) @
$Q $(BIN)/golangci-lint run

.PHONY: tidy
tidy: ; $(info $(M) Running go mod tidy...) @
@$(GOMODTIDY)

.PHONY: fmt
fmt: | $(GOIMPORTS); $(info $(M) Running goimports...) @ ## Run goimports on all source files
$Q $(GOIMPORTS) -w .
Expand Down

0 comments on commit 983ccdd

Please sign in to comment.