Skip to content

fix(ci): Extract the Syncthing download without Expand-Archive - #311

Open
jan-23 wants to merge 1 commit into
GermanCoding:mainfrom
jan-23:fix/download-syncthing-extract
Open

jan-23 wants to merge 1 commit into
GermanCoding:mainfrom
jan-23:fix/download-syncthing-extract

Conversation

@jan-23

@jan-23 jan-23 commented Nov 22, 2026

Copy link
Copy Markdown

The Build workflow fails on the current GitHub runner images in download-syncthing.ps1:

Extracting to syncthing...
Expand-Archive : Cannot find an overload for "ExtractToDirectory" and the argument count: "3".
At scripts\download-syncthing.ps1:37 char:1

This repository's last Build runs (11 Nov) still used the windows-2022 / windows-11-vs2026-arm64 images 20261028.624, where extraction worked. Runs on 20261111.635 fail on both x64 and arm64, every time (re-running doesn't help), so the next build here will most likely hit this too.

This replaces Expand-Archive with System.IO.Compression.ZipFile.ExtractToDirectory (the two-argument overload, available in both Windows PowerShell and PowerShell 7). Since that overload doesn't overwrite, a nested folder left over from an interrupted run is removed first. The resulting syncthing\ layout is unchanged.

Tested:

  • Locally with Windows PowerShell 5.1 (download, signature check, extraction).
  • On GitHub Actions in a fork: tests and the portable build now pass on windows-2022 and windows-11-arm.

🤖 Generated with Claude Code

On GitHub's windows-2022 runners, Expand-Archive now fails with "Cannot
find an overload for ExtractToDirectory and the argument count: 3",
breaking every build. Use System.IO.Compression.ZipFile directly, which
works the same in Windows PowerShell and PowerShell 7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GermanCoding

Copy link
Copy Markdown
Owner

I see the error, but Expand-Archive is a standard powershell command so this looks like it is on Microsoft to fix, not us

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