From 775891fc88bdd7b30b3b281773d6e39a48d5a5e2 Mon Sep 17 00:00:00 2001
From: Hidde Beydals <hello@hidde.co>
Date: Wed, 23 Mar 2022 21:32:00 +0100
Subject: [PATCH] build: ensure component update runs with make tidy

This to include the `-compat` flag.

Signed-off-by: Hidde Beydals <hello@hidde.co>
---
 .github/workflows/update.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml
index bb815fdd..7d0da6f9 100644
--- a/.github/workflows/update.yaml
+++ b/.github/workflows/update.yaml
@@ -42,8 +42,7 @@ jobs:
 
             if [[ "${MOD_VERSION}" != "${LATEST_VERSION}" ]]; then
               go mod edit -require="github.com/fluxcd/$1/api@${LATEST_VERSION}"
-              rm go.sum
-              go mod tidy
+              make tidy
               changed=true
             fi
 
-- 
GitLab