-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d90f8fd
commit 7c575ad
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//go:build !go1.23 | ||
|
||
package build | ||
|
||
import ( | ||
"github.com/goyek/goyek/v2" | ||
) | ||
|
||
func goModTidyDiff(a *goyek.A) bool { | ||
a.Log("skipping go mod tidy -diff on < go1.23") | ||
return true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//go:build go1.23 | ||
|
||
package build | ||
|
||
import ( | ||
"github.com/goyek/goyek/v2" | ||
"github.com/goyek/x/cmd" | ||
) | ||
|
||
func goModTidyDiff(a *goyek.A) bool { | ||
return cmd.Exec(a, "go mod tidy -diff") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters