Comments (2)
Hi @DavidThompsonWG,
To fix this you need to either install Powershell Core or install a dotnet core (v5/v6) on the machine.
This unfortunately happens because of the code in https://github.com/actions/toolkit/blob/daf8bb00606d37ee2431d9b1596b88513dcf9c59/packages/tool-cache/src/tool-cache.ts#L374-L379 which is part of the Github lib.
As you can see from that code, you probably only have .NetFramework installed and hence calling [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}', $true)
which won't work, have a look at the api specs ( https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.zipfile.extracttodirectory?view=netframework-4.8#overloads ), on the other hand the .NetCore has the correct overloads ( https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.zipfile.extracttodirectory?view=net-6.0#overloads ).
To me this is a flaw with the Github tool-cache Api and I have submitted a bug report in their repo, that you can subscribe to.
Given we won't be able to fix this, and hopefully the workarounds mentioned above work, I'll close this issue for now.
Let us know how you go?
Regards
John
from install-octopus-cli-action.
Hi @johnsimons
Thanks for getting back to me. We do have the dotnet framework SDK 3.1, 5 and 6 installed on the server, but I will try and install Powershell Core, and see how we get on.
Thanks,
David
from install-octopus-cli-action.
Related Issues (16)
- Failed to install Octopus CLI
- Install octopus CLI action fails on a self-hosted windows runner HOT 16
- Install action is not getting latest cli version HOT 4
- Use oc.to Service for Domain Queries
- Investigate Retry Options if Download is Blocked by Reverse Proxy (i.e. Cloudflare)
- Update action to use node 16 HOT 2
- Update readme for converting to 3.x HOT 3
- API rate limit exceeded HOT 9
- Failed to Install Octopus CLI : Octopus CLI version not found: 1.7.1 HOT 2
- Upgrade action to use node 20
- Add automated dependency management
- Dependency Dashboard
- Add workflow to notify of Dependabot security alerts HOT 1
- Upgrade to CodeQL action v3
- Octopus CLI breaks in Github Actions, seemingly because https://raw.githubusercontent.com/OctopusDeploy/cli/main/releases.json doesn't contain a version field (anymore?) HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install-octopus-cli-action.