Skip to content

fix: avoid Expand-Archive dependency on Windows - #4

Merged
anthonystepvoy merged 1 commit into
mainfrom
agent/fix-powershell-archive
Aug 9, 2026
Merged

fix: avoid Expand-Archive dependency on Windows#4
anthonystepvoy merged 1 commit into
mainfrom
agent/fix-powershell-archive

Conversation

@anthonystepvoy

Copy link
Copy Markdown
Owner

Summary

Fixes #1 by removing the installer's dependency on the Microsoft.PowerShell.Archive module.

Root cause

The remote Windows installer called Expand-Archive. On affected PowerShell installations, command discovery found the module but automatic loading failed, so installation stopped before Caveman files were copied.

Changes

  • Extract downloaded ZIP archives through System.IO.Compression.ZipFile.
  • Use Invoke-WebRequest -UseBasicParsing for Windows PowerShell 5.1 compatibility.
  • Exercise the real remote-download and ZIP-extraction path with a temporary local HTTP server.
  • Run that regression test under Windows PowerShell 5.1 in CI.
  • Enforce LF endings for shell scripts and workflows across platforms.

Verification

  • python scripts/validate-package.py
  • Bash syntax and functional installer tests
  • PowerShell 7 remote install/uninstall test
  • Windows PowerShell 5.1 remote install/uninstall test
  • git diff --check

@anthonystepvoy
anthonystepvoy marked this pull request as ready for review August 9, 2026 18:41
@anthonystepvoy
anthonystepvoy merged commit d3f5b6e into main Aug 9, 2026
6 checks passed
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.

Expand-Archive issue for caveman when trying to select intensity

1 participant