Coder Social home page Coder Social logo

Comments (13)

nixomose avatar nixomose commented on July 23, 2024 1

My quick workaround solution was to add a disk, mount drive d and make that directory that it wanted. :-)

When I get back to this in a day or two I will give that a try and let you know, thanks.

from setup-go.

dsame avatar dsame commented on July 23, 2024 1

Hello @nixomose, i am going to close the issue because the problem does not exist anymore. Please feel free to reopen it or create a new one in case it appears again.

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

in addition the readme.md says

The action will try to enable caching unless the cache input is explicitly set to false.

so I tried this:

      uses: actions/setup-go@v4
      with:
        go-version: ${{ env.GOVER }}
        cache: false      

and it still tries to write the cache to drive D:

from setup-go.

dusan-trickovic avatar dusan-trickovic commented on July 23, 2024

Hello, @nixomose! Thank you for reporting this, we will investigate it and see what can be done :)

from setup-go.

dsame avatar dsame commented on July 23, 2024

Hello @nixomose, can you please try to set the environment variable AGENT_ISSELFHOSTED=1 as a quick workaround?

on:
...

env:
  AGENT_ISSELFHOSTED: 1

from setup-go.

dsame avatar dsame commented on July 23, 2024

The problem expected to be solved with this PR merge https://github.com/actions/setup-go/pull/438/files#diff-39b2554fd18da165b59a6351b1aafff3714e2a80c1435f2de9706355b4d32351R6

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

so I think that helped. but I've rebuilt the runners a different way, so likely your environment variable fixed it, but there's lots of other little changes I made that might have had some effect as well. either way, it's working.
thanks.

from setup-go.

Bykow avatar Bykow commented on July 23, 2024

Hey, I'm using actions/setup-go@v5 and I have the same issue.

I'm running a self hosted windows runner, and it has no drive D:
EPERM: operation not permitted, mkdir 'D:\actions-runner\_work\_tool\go\1.22.1\x64'

edit: Seems like the issue can't get reopened from a comment, how so ?

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

I added this and it stopped using drive D:

env:
AGENT_ISSELFHOSTED: 1

from setup-go.

Bykow avatar Bykow commented on July 23, 2024

So this comment is not correct right ?

#432 (comment)

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

If you're still having a problem, then I guess not.

from setup-go.

Bykow avatar Bykow commented on July 23, 2024

So adding the env variable did solve my issue. But the MR pointed seems to suggest that this enviromnent variable should not be necessary anymore.

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

I do not know. But it works and that's what I needed.

from setup-go.

Related Issues (20)

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.