From 499dc982262df35bab0aab21d903b27df4169af6 Mon Sep 17 00:00:00 2001 From: MohammadBnei Date: Thu, 20 Nov 2025 13:44:24 +0100 Subject: [PATCH 1/2] feat(dew.go): return the custom validate error wrapped with the ErrValidationFailed (possible since go1.20) --- dew.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dew.go b/dew.go index 6f6ec48..28274c3 100644 --- a/dew.go +++ b/dew.go @@ -45,7 +45,7 @@ func DispatchMulti(ctx context.Context, actions ...CommandHandler[Action]) error return mux.mHandlers[mDispatch](rctx, func(ctx Context) error { for _, action := range actions { if err := action.Command().(Action).Validate(ctx.Context()); err != nil { - return fmt.Errorf("%w: %v", ErrValidationFailed, err) + return fmt.Errorf("%w: %w", ErrValidationFailed, err) } if err := action.Mux().dispatch(ACTION, ctx, action); err != nil { return err From d069c783dd4046468334e17e89c2aa56c6f50a79 Mon Sep 17 00:00:00 2001 From: MohammadBnei Date: Thu, 20 Nov 2025 15:36:21 +0100 Subject: [PATCH 2/2] chore(ci): update github action cache version --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6e52137..ff3dc60 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: go-version: 1.20.x - name: Cache Go modules - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}