arduino / arduino/setup-protoc

NotSupportedArchiveFileExtension,Expand-Archive

Open
#110 1 comment 0 reactions 0 assignees View on GitHub
type: imperfection
Dominant language
TypeScript
Stars
165
Forks
73
PR merge metrics
No merged PRs in 30d

Description

### Describe the problem

runner log

```
Getting protoc version: v23.4
Downloading archive: https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-win64.zip
[command]C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath 'C:\Users\lyss\.cache\act\9945b4ec766093a4\tmp\81f75068-d957-475e-99e8-e1d7e0924bc8' -DestinationPath 'C:\Users\lyss\.cache\act\9945b4ec766093a4\tmp\3d5d136c-15b3-4b8f-9dcf-bf7bd216f82a' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('C:\Users\lyss\.cache\act\9945b4ec766093a4\tmp\81f75068-d957-475e-99e8-e1d7e0924bc8', 'C:\Users\lyss\.cache\act\9945b4ec766093a4\tmp\3d5d136c-15b3-4b8f-9dcf-bf7bd216f82a', $true) }"
Expand-Archive : ?֧?ֵĴ浵?ļ?ʽ?ֻ? .zip ?֧?ֵĴ浵?ļ?ʽ?
?λ? ?:1 ?ַ?: 210
+ ... Ignore)) { Expand-Archive -LiteralPath 'C:\Users\lyss\.cache\act\994 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:String) [Expand-Archive]?IOException
+ FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive

::error::Error: The process 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' failed with exit code 1
❌ Failure - Main setup-protoc
exit status 1
```

### To reproduce

self-host runner at windows

### Expected behavior

-

### 'arduino/setup-protoc' version

3.0

### Additional context

_No response_

### Issue checklist

- [x] I searched for previous reports in [the issue tracker](https://github.com/arduino/setup-protoc/issues?q=)
- [x] I verified the problem still occurs when using the latest version
- [x] My report contains all necessary details

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with arduino/setup-protoc version 3.0 on a self-hosted Windows runner, using the protoc v23.4 win64 archive shown in the log. Investigate the archive extraction step that invokes PowerShell Expand-Archive; done means the archive extracts successfully and the setup-protoc action completes on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.