Skip to content

Fix CI pipeline: MSRV 1.82, doctest failures, clippy errors#18

Draft
Copilot wants to merge 7 commits into
masterfrom
copilot/fix-ci-cd-pipeline-issues-again
Draft

Fix CI pipeline: MSRV 1.82, doctest failures, clippy errors#18
Copilot wants to merge 7 commits into
masterfrom
copilot/fix-ci-cd-pipeline-issues-again

Conversation

Copilot AI commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

CI failing on 7/10 jobs due to MSRV incompatibility and doctest compilation errors.

MSRV Update: 1.70 → 1.82

Production dependency chain requires Rust 1.82:

oops → toml 0.8 → toml_edit 0.22 → indexmap 2.13 (MSRV 1.82)
  • Added rust-version = "1.82" to Cargo.toml
  • Updated CI workflow to dtolnay/rust-toolchain@1.82.0
  • Pinned home to v0.5.9 in Cargo.lock (v0.5.11+ requires Rust 1.86)

Doctest Fixes

  • which(): Parameter expects String, not &str
  • get_output(): Missing fn main() -> Result<...> wrapper for ? operator
  • NoSuchFile: Doctest error message didn't match regex patterns
  • FixFile: Struct has fields, requires ::new() not unit syntax

Clippy Fixes

  • Removed unused imports (Write, clap::Parser)
  • #[cfg(windows)] on std::env import for cross-platform compilation
  • strip_prefix() instead of manual slicing
  • #[allow] for intentional patterns (vec_init_then_push, type_complexity)
Original prompt

You are the CEO. You have multiple subagents at your disposal. The buck stops with you.

The CI/ CD pipeline is failing.

Find a way to test each of the parts of the CI / CD pipeline without actually having to run the pipeline. Create a similar script and execute. Find a way to reproduce the failures.
Holistically go through the codebase to learn and understand the issue in depth.
Search the internet to find out possible solutions and for knowledge
Think through, reason hard and deep and figure out a holistic fix
Make the changes, test it throughly, make sure that your changes would succeed when run in the CI / CD pipeline
Run a critic in a sub agent. Think through its findings
Run a reviewer in a sub agent. Address if you think any of its concerns are valid
Review and cross check your work


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Pin idna_adapter to 1.1.0 (unicode-rs backend) to support older Rust versions
- Add Cargo.lock to git tracking for reproducible builds
- Fix test isolation for env var tests using mutex and RAII guard
- Fix MSRV workflow to use correct Rust version format (1.70.0 instead of 1.70)
- Apply cargo fmt formatting

Co-authored-by: animeshkundu <7248674+animeshkundu@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate and resolve CI/CD pipeline failures Fix MSRV and test isolation issues in CI pipeline Jan 21, 2026
Copilot AI requested a review from animeshkundu January 21, 2026 10:14
Copilot AI and others added 2 commits January 21, 2026 10:27
…lity

- Remove unused import 'Write' from src/ui/colors.rs
- Remove unused import 'clap::Parser' from src/main.rs
- Add #[allow(dead_code)] for unused function extract_typo_from_output
- Fix doc list item overindentation in command.rs
- Use strip_prefix() instead of manual slicing in git/support.rs and typo.rs
- Add #[allow(clippy::vec_init_then_push)] for rules registry
- Add #[allow(clippy::type_complexity)] for SHELLS static
- Downgrade Cargo.lock from version 4 to version 3 for MSRV compatibility
- Apply cargo fmt formatting fixes

Co-authored-by: animeshkundu <7248674+animeshkundu@users.noreply.github.com>
Add #[cfg(windows)] attribute to std::env import in powershell.rs
to fix compilation on both Linux (clippy) and Windows targets.

Co-authored-by: animeshkundu <7248674+animeshkundu@users.noreply.github.com>
Copilot AI changed the title Fix MSRV and test isolation issues in CI pipeline Fix CI pipeline failures: Cargo.lock v3 compatibility and clippy errors Jan 21, 2026
Copilot AI and others added 3 commits January 21, 2026 10:44
- Fix which() doctest to use .to_string() for String parameter
- Fix get_output() doctest to wrap in fn main() returning Result
- Fix NoSuchFile doctest to use proper mv error message format
- Fix FixFile doctest to use FixFile::new() instead of unit struct syntax

Co-authored-by: animeshkundu <7248674+animeshkundu@users.noreply.github.com>
- Update MSRV from 1.70 to 1.74 (required by clap 4.5)
- Pin home crate to v0.5.9 (v0.5.11+ requires Rust 1.81+)
- Add rust-version = "1.74" to Cargo.toml for explicit MSRV declaration
- Ensure Cargo.lock stays at version 3 for MSRV compatibility

Co-authored-by: animeshkundu <7248674+animeshkundu@users.noreply.github.com>
Production dependency chain requires Rust 1.82+:
- oops -> toml -> toml_edit -> indexmap 2.13 (requires Rust 1.82)

This is the minimum realistic MSRV given current dependencies.
The home crate remains pinned at v0.5.9 in Cargo.lock.

Co-authored-by: animeshkundu <7248674+animeshkundu@users.noreply.github.com>
Copilot AI changed the title Fix CI pipeline failures: Cargo.lock v3 compatibility and clippy errors Fix CI pipeline: MSRV 1.82, doctest failures, clippy errors Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants