This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new d1621124131 branch-4.1: [improvement](build) Avoid unnecessary
submodule initialization (#68533) (#68534)
d1621124131 is described below
commit d1621124131d60e0c88b4f5b5cf7c7fad0a365de
Author: Gavin Chou <[email protected]>
AuthorDate: Mon Sep 28 18:53:10 2026 +0800
branch-4.1: [improvement](build) Avoid unnecessary submodule initialization
(#68533) (#68534)
### What problem does this PR solve?
Issue Number: N/A
Related PR: #68533
Problem Summary: The branch-4.1 line predates the root AGENTS.md and its
worktree setup hook, but its build and BE unit-test entry points already
initialize the specific submodule paths they require. Add
branch-appropriate root guidance so non-build tasks leave all submodules
uninitialized and any exceptional manual initialization is limited to an
exact required path.
### Release note
None
### Check List (For Author)
- Test: No need to test (instruction-only change)
- Behavior changed: Yes (non-build checkout and worktree setup no longer
initializes submodules)
- Does this need documentation: No
---
AGENTS.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 00000000000..ce9404de086
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,5 @@
+# AGENTS.md — Apache Doris
+
+## Submodule Initialization
+
+Submodules are not part of the default checkout or worktree setup. If the task
does not compile Doris or run tests that require submodules, leave all
submodules uninitialized. Build and test entry points initialize the submodule
paths they require. Only initialize a submodule manually when the task actually
needs it and an entry point does not handle it; initialize the exact required
path instead of running an unscoped recursive update for every submodule.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]