Skip to content

Commit 22946cb

Browse files
committed
chore: Add deps:check mage command
1 parent ce60eff commit 22946cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

magefile.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ func (Fmt) Lint() error {
6969
lintCmd := "golangci-lint"
7070
return sh.RunV(lintCmd, "run")
7171
}
72+
73+
type Deps mg.Namespace
74+
75+
// Checks the dependencies.
76+
func (Deps) Check() error {
77+
return sh.RunV(mg.GoCmd(), "mod", "tidy", "-diff")
78+
}

0 commit comments

Comments
 (0)