File 0004-gha-add-ci-job-to-check-go-mod-and-vendor.patch of Package go-mtree
From d997335f306613a75a0dc2afbf760fc01aaa6cce Mon Sep 17 00:00:00 2001
From: Aleksa Sarai <cyphar@cyphar.com>
Date: Sat, 20 Sep 2025 02:58:10 +1000
Subject: [PATCH 04/25] gha: add ci job to check go mod and vendor
In order to avoid forgetting to clean this up.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
---
.github/workflows/go.yml | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 567902eed5b1..f5aa6002484e 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -21,12 +21,21 @@ jobs:
with:
go-version: ${{ matrix.go }}
+ - name: Go Modules
+ run: |
+ go mod tidy
+ git diff --exit-code
+
+ go mod vendor
+ git add -N vendor/
+ git diff --exit-code
+
- name: Build
run: make build
- name: Validation
run: make validation
-
+
- name: Build.Arches
run: make build.arches
--
2.51.0