Skip to content

fix: relax parsing of --volume argument with respect to Windows#6202

Merged
marxin merged 7 commits intomainfrom
cli-volume-arg-windows
Feb 17, 2026
Merged

fix: relax parsing of --volume argument with respect to Windows#6202
marxin merged 7 commits intomainfrom
cli-volume-arg-windows

Conversation

@marxin
Copy link
Contributor

@marxin marxin commented Feb 16, 2026

This will allow us running the CLI integrations tests on Windows as well!

Fixes: #6191

Copilot AI review requested due to automatic review settings February 16, 2026 11:28
@marxin marxin requested a review from syrusakbary as a code owner February 16, 2026 11:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Windows path parsing for the --volume argument by switching from split(":") to rsplit_once(":"). The original issue was that Windows paths like C:\Users\...:app would incorrectly split into three components due to the colon in C:\, causing parsing to fail. The fix enables the Windows CI tests that were previously excluded due to this bug.

Changes:

  • Replace split(":").collect_vec() with rsplit_once(":") in parse_volume and parse_mapdir functions to handle Windows drive letters
  • Remove the itertools::Itertools import that is no longer needed
  • Re-enable Windows integration tests in the CI workflow

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
lib/cli/src/utils/mod.rs Updated parsing logic for volume and mapdir arguments to use rsplit_once instead of split, fixing Windows path support
.github/workflows/test.yaml Removed Windows exclusion from test-integration-cli-ci tests now that the parsing bug is fixed

@marxin marxin force-pushed the cli-volume-arg-windows branch from 00e2391 to 59520b7 Compare February 17, 2026 08:13
@marxin marxin enabled auto-merge (squash) February 17, 2026 08:16
@marxin marxin merged commit b073913 into main Feb 17, 2026
76 checks passed
@marxin marxin deleted the cli-volume-arg-windows branch February 17, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants