Skip to content

Commit 16f392a

Browse files
Add CI step for validating vendored dependencies (#66)
1 parent bc181de commit 16f392a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/common.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
make fmt
2525
git diff
2626
if ! git diff --quiet ; then echo the following files require formatting or license headers: ; git diff --name-only ; false ; fi
27+
- name: Check dependencies
28+
run: |
29+
go mod tidy
30+
go mod vendor
31+
git add --all --intent-to-add .
32+
if ! git diff --quiet ; then echo Please run `go mod tidy && go mod vendor`. Out of date dependency files: ; git diff --name-only ; false ; fi
2733
- name: Check protobufs
2834
run: |
2935
make go-protos

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ require (
1111
github.com/google/uuid v1.6.0
1212
github.com/mdlayher/vsock v1.2.1
1313
github.com/moby/buildkit v0.26.2
14+
github.com/moby/patternmatcher v0.6.0
1415
github.com/opencontainers/go-digest v1.0.0
1516
github.com/opencontainers/image-spec v1.1.1
1617
github.com/pelletier/go-toml v1.9.5
@@ -55,7 +56,6 @@ require (
5556
github.com/mdlayher/socket v0.5.1 // indirect
5657
github.com/moby/docker-image-spec v1.3.1 // indirect
5758
github.com/moby/locker v1.0.1 // indirect
58-
github.com/moby/patternmatcher v0.6.0 // indirect
5959
github.com/moby/sys/signal v0.7.1 // indirect
6060
github.com/morikuni/aec v1.0.0 // indirect
6161
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect

0 commit comments

Comments
 (0)