mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
chore: pin rust toolchain to 1.96 for edition2024 deps (#2228)
- add ecc2/rust-toolchain.toml pinning stable 1.96 (deps now require edition2024, which needs rustc 1.85+; local 1.84 could no longer build) - make git test fixtures hermetic: disable core.hooksPath inside temp repos so global identity-checking pre-push hooks cannot fail tests
This commit is contained in:
parent
6319c7d309
commit
6626e804f9
3 changed files with 10 additions and 0 deletions
4
ecc2/rust-toolchain.toml
Normal file
4
ecc2/rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[toolchain]
|
||||
# Minimum 1.85 required: several dependencies use edition2024.
|
||||
channel = "1.96"
|
||||
components = ["rustfmt", "clippy"]
|
||||
|
|
@ -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", "ecc-tests@example.com"])?;
|
||||
// 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"])?;
|
||||
|
|
|
|||
|
|
@ -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", "ecc-tests@example.com"])?;
|
||||
// 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"])?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue