You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v0.34] buildx bake fails with "cache_to must be a array" when cache_to is an empty [] #3849
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
When using docker buildx bake with a Compose file where cache_to is explicitly defined as an empty array ([]), the build fails with a schema validation error.
Buildx version: 0.34.0
Expected behaviour
The bake process should treat cache_to: [] as a valid instruction to not export any cache, or ignore the empty list, and proceed with the build.
Actual behaviour
ERROR: services.test-buildx.build.cache_to must be a array
changed the title [-]buildx bake fails with "cache_to must be a array" when cache_to is an empty [][/-][+][v0.34] buildx bake fails with "cache_to must be a array" when cache_to is an empty [][/+]on May 14, 2026
8a01076b6749d5e3c1fc363c8d4e8196f9493037 is the first bad commit
commit 8a01076b6749d5e3c1fc363c8d4e8196f9493037
Author: Guillaume Lours <glours@users.noreply.github.com>
Date: Fri Apr 3 12:15:27 2026 +0200
bump compose-go to version v2.10.2
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
dabd353441f599227cb3ec240113af6c1fa648ca is the first bad commit
commit dabd353441f599227cb3ec240113af6c1fa648ca
Author: Nicolas De Loof <nicolas.deloof@gmail.com>
Date: Thu Nov 6 12:31:01 2025 +0100
create_host_path must not be omitted when set to false
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Activity
tonistiigi commentedon May 14, 2026
@jsternberg Is this coming from compose or from us?
rushikeshmagar492 commentedon May 14, 2026
I believe its docker buildx, since there is no change in compose version and it is working fine with buildx version v0.33.0 f7897eb
[-]buildx bake fails with "cache_to must be a array" when cache_to is an empty [][/-][+][v0.34] buildx bake fails with "cache_to must be a array" when cache_to is an empty [][/+]tonistiigi commentedon May 15, 2026
#3775
compose bisect
compose-spec/compose-go#836
https://github.com/compose-spec/compose-go/pull/836/changes#diff-eafe62eae191e88faad4c223c4de9af268c175ee68695872e175b814d7c5baa5R74 looks like candidate.
@glours @ndeloof
tonistiigi commentedon May 15, 2026
possible workaround without need to update compose #3852
fix: preserve empty slices in OmitEmpty for schema validation
fix: preserve empty slices in OmitEmpty for schema validation
fix: preserve empty slices in OmitEmpty for schema validation
thaJeztah commentedon May 18, 2026
Probably shouldn't be closed yet until vendored
tonistiigi commentedon May 19, 2026
released in https://github.com/docker/buildx/releases/tag/v0.34.1
Update dependency buildx to v0.34.1 (#1533)