From 91a745258e4ee68c3280aa27a7ce6ed50a62111d Mon Sep 17 00:00:00 2001 From: panos-xyz Date: Sat, 15 Aug 2026 17:04:21 +0800 Subject: [PATCH] fix(docker): keep git metadata in build context --- .dockerignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 223d0b6c..1e2d2435 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,8 @@ target/ -.git/ +# NOTE: .git is intentionally NOT excluded. vergen-git2 (crates/node/build.rs) +# discovers it at build time to embed the commit SHA / describe into the binary +# version. Excluding it makes those VERGEN_GIT_* + readback env vars unset and the +# build fails with `Error: NotPresent`. This matches upstream reth's `!/.git`. .github/ .claude/ .worktrees/