Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #199 from upbound/epk/go.modules.tidy.check
Browse files Browse the repository at this point in the history
go.modules.tidy.check: fix `bash: go.mod: command not found`
  • Loading branch information
muvaf authored Aug 4, 2022
2 parents 8c8269d + 622efa5 commit 40f9d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makelib/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ go.modules.tidy:
go.modules.tidy.check:
@$(INFO) verify go modules dependencies are tidy
@$(GO) mod tidy
@$(shell git diff --exit-code --name-only go.mod go.sum)
@changed=$$(git diff --exit-code --name-only go.mod go.sum 2>&1) && [ -z "$${changed}" ] || (echo "go.mod is not tidy" 1>&2; $(FAIL))
@$(OK) go modules are tidy

go.modules.update:
Expand Down

0 comments on commit 40f9d7a

Please sign in to comment.