Code Monkey home page Code Monkey logo

Comments (2)

johnsimons avatar johnsimons commented on May 20, 2024

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.

DavidThompsonWG avatar DavidThompsonWG commented on May 20, 2024

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.

image

Thanks,
David

from install-octopus-cli-action.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.