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

go.modules.tidy.check: fix bash: go.mod: command not found #199

Merged
merged 1 commit into from
Aug 4, 2022
Merged
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
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