Skip to content

Commit b75c262

Browse files
authored
Merge pull request #3659 from crazy-max/fix-mod-outdated
bake: use no-cache-filter for outdated stage
2 parents 1c051c8 + 0f6a0eb commit b75c262

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docker-bake.hcl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ target "mod-outdated" {
110110
inherits = ["_common"]
111111
dockerfile = "./dockerfiles/Dockerfile.vendor"
112112
target = "outdated"
113-
args = {
114-
// used to invalidate cache (more info https://github.com/moby/buildkit/issues/1213)
115-
UUID = uuidv4()
116-
}
113+
no-cache-filter = ["outdated"]
117114
output = ["type=cacheonly"]
118115
}
119116

dockerfiles/Dockerfile.vendor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ EOT
3535

3636
FROM psampaz/go-mod-outdated:${MODOUTDATED_VERSION} AS go-mod-outdated
3737
FROM base AS outdated
38-
ARG UUID
3938
RUN --mount=target=.,rw \
4039
--mount=target=/go/pkg/mod,type=cache \
4140
--mount=from=go-mod-outdated,source=/home/go-mod-outdated,target=/usr/bin/go-mod-outdated \

0 commit comments

Comments
 (0)