From 48dd4f469a79b05a150f246377b94d55f188a1f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 29 Jan 2026 11:30:50 +0100 Subject: [PATCH] Update AGENTS.md with debug printing note Added note about debug printing and CI build failure. --- AGENTS.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index e0dd4bba1..365cef232 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,8 +3,11 @@ * Don't use comments to explain the obvious. * Use self-explanatory variable and function names. * Use short variable names when the context is clear. +* If you need to add temporary debug printing, use `hdebug.Printf`.[^1] * Never export symbols that's not needed outside of the package. * Avoid global state at (almost) all cost. * This is a project with a long history; assume that a similiar problem has been solved before, look hard for helper functions before creating new ones. * Use `go test ./somepackage/...` when iterating. -* Use `mage check` when you're done. \ No newline at end of file +* Use `mage check` when you're done. + +[^1]: CI build fail if you forget to remove the debug printing. -- 2.39.5