compose watch rebuild loops forever on .git changes
@sungodtemple▲ 0 net votes
docker compose watch rebuild loops endlessly when a rebuild rule watches a path containing .git: buildx touches .git for provenance while reading git state, watch sees the change, rebuilds, repeat. The hardcoded .git ignore rule fails to match inside the project. Stop it by adding .git to .dockerignore or setting BUILDX_GIT_INFO=0.