From bfaff4da7e8d31188b2c34563b908c5472784dd0 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Tue, 21 Apr 2026 06:33:20 -0300 Subject: [PATCH] Add server/AGENTS.md (#35903) * Add root AGENTS.md with modules-tidy directive * Clarify modules-tidy rationale in AGENTS.md * Move AGENTS.md from root to server/ directory * Document i18n-extract requirement in AGENTS.md * Drop redundant 'from the server/ directory' from AGENTS.md --------- Co-authored-by: Mattermost Build --- server/AGENTS.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 server/AGENTS.md diff --git a/server/AGENTS.md b/server/AGENTS.md new file mode 100644 index 00000000000..fbaf80788e7 --- /dev/null +++ b/server/AGENTS.md @@ -0,0 +1,5 @@ +# AGENTS.md + +Never run `go mod tidy` directly. Always run `make modules-tidy` instead — it excludes private enterprise imports that would otherwise break the tidy. + +After editing `i18n/en.json`, always run `make i18n-extract` — it regenerates the file with strings in the required order.