Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

chore: pin rust toolchain to 1.96 for edition2024 deps (#2228)

Affaan Mustafa6626e804f926
diff --git a/ecc2/rust-toolchain.toml b/ecc2/rust-toolchain.toml
new file mode 100644
index 000000000..8bc491ef1
--- /dev/null
+++ b/ecc2/rust-toolchain.toml
@@ -0,0 +1,4 @@
+[toolchain]
+# Minimum 1.85 required: several dependencies use edition2024.
+channel = "1.96"
+components = ["rustfmt", "clippy"]
diff --git a/ecc2/src/session/manager.rs b/ecc2/src/session/manager.rs
index ca061aae6..8de49c8ef 100644
--- a/ecc2/src/session/manager.rs
+++ b/ecc2/src/session/manager.rs
@@ -5043,6 +5043,9 @@ mod tests {
run_git(path, ["init", "-q"])?;
run_git(path, ["config", "user.name", "ECC Tests"])?;
run_git(path, ["config", "user.email", "[email protected]"])?;
+ // Keep fixtures hermetic: a global core.hooksPath (e.g. identity-checking
+ // pre-push hooks) must not run inside test repos.
+ run_git(path, ["config", "core.hooksPath", "hooks-disabled"])?;
fs::write(path.join("README.md"), "hello\n")?;
run_git(path, ["add", "README.md"])?;
run_git(path, ["commit", "-qm", "init"])?;
diff --git a/ecc2/src/tui/dashboard.rs b/ecc2/src/tui/dashboard.rs
index 396f3402d..c98b4e2c2 100644
--- a/ecc2/src/tui/dashboard.rs
+++ b/ecc2/src/tui/dashboard.rs
@@ -15047,6 +15047,9 @@ diff --git a/src/lib.rs b/src/lib.rs
run_git(path, &["init", "-q"])?;
run_git(path, &["config", "user.name", "ECC Tests"])?;
run_git(path, &["config", "user.email", "[email protected]"])?;
+ // Keep fixtures hermetic: a global core.hooksPath (e.g. identity-checking
+ // pre-push hooks) must not run inside test repos.
+ run_git(path, &["config", "core.hooksPath", "hooks-disabled"])?;
fs::write(path.join("README.md"), "hello\n")?;
run_git(path, &["add", "README.md"])?;
run_git(path, &["commit", "-qm", "init"])?;