Browse code

ci: module-replace: ignore Dockerfile for api changes

The API Dockerfile should be ok to ignore for this check, as it's
not part of the module;

```
================================================
================================================
api diff:
-ARG GO_VERSION=1.25.7
+ARG GO_VERSION=1.25.8
================================================
Detected changes in ./api directory, checking for replace rule...
null
ERROR: Changes detected in ./api but go.mod is missing a replace rule for github.com/moby/moby/api
Please run ./hack/vendor.sh replace
================================================
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2026/03/06 22:57:16
Showing 1 changed files
... ...
@@ -12,6 +12,7 @@ filter_diff() {
12 12
 api_diff=$(
13 13
 	validate_diff --diff-filter=ACMR -U0 -- \
14 14
 		'api/' \
15
+		':(exclude)api/Dockerfile' \
15 16
 		':(exclude)api/README.md' \
16 17
 		':(exclude)api/swagger.yaml' \
17 18
 		':(exclude)api/docs/' \