Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72

Relationships

#2065 Windows: CLI outputs forward-slash lowercase paths instead of native backslash paths

Opened by stack72 · 9/8/2026· Shipped 9/8/2026

Description

On Windows, the swamp CLI outputs paths with forward slashes and lowercase drive letters (e.g. c:/users/runneradmin/...) instead of native Windows paths with backslashes and uppercase drive letters (C:\Users\[REDACTED]\...).

This causes path comparisons to fail when user code or tests construct paths using the OS-native separator (as returned by Deno.makeTempDir(), join(), etc.).

Steps to Reproduce

  1. On Windows, run any command that outputs file paths (e.g. swamp extension list --json, swamp source add, swamp source rm)
  2. Compare the output path to a natively-constructed path

Example:

  • CLI outputs: c:/users/runneradmin/appdata/local/temp/...
  • Native path: C:\Users\[REDACTED]\AppData\Local\Temp\...

Affected Commands

  • swamp extension list --json — extension paths
  • swamp extension source add — bundle paths (also double-prefixes: C:\repo\c:/users/...)
  • swamp extension source rm — reported paths
  • swamp model type describe — version paths

Environment

  • Windows Server 2022 (GitHub Actions windows-latest)
  • swamp version: 20260902.194129.0-sha.d1808bea
  • Discovered via the Windows UAT runner (swamp-uat#363)

Impact

7 UAT test failures across extension and e2e shards. The source add double-prefix variant (joining repo dir + absolute path → C:\...\c:/...) also causes os error 123 (invalid path).

Suggested Fix

Normalize paths through std/path before output — resolve() or normalize() will convert forward slashes to backslashes and fix casing on Windows. The source add double-prefix is a separate join bug where an absolute path is passed to a relative-path join.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 13 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/8/2026, 6:43:28 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/8/2026, 4:19:51 PM

Sign in to post a ripple.