Add an option to only warn about missing variables in build
section
#470
Labels
enhancement
New feature or request
build
section
#470
When building images with Compose (i.e.
docker compose build
), you can get warnings in the output like:This warning only makes sense [when building] if the variable is used in the
build
section (orimage
since that's the tag that'll be used).If the variable is only used for things like
environment
or other runtime options, it doesn't affect the build.This also applies to
buildx bake
, which parses Compose files to merge with HCL.The text was updated successfully, but these errors were encountered: