-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EEXIST err on windows when adding to cache. #550
Comments
It only happens when the first run we setup a new env. and the next run will be
I think it's not caused by go version. |
Hi @xiaost, |
I am having this same error using
But at least in my case it doesn't happen the first time, it happens on the second time when the file is already there. I was actually able to make this error stop happening by just deleting the entire - name: Cleanup Workdir to workaround a setup-go bug
# The bug mentioned above causes setup-go to fail downloading
# Golang because "the file already exists", but disabling
# cache doesn't fix it, so we'll just delete it manually.
run: |
if (Test-Path "${{ github.workspace }}\..\..\_tool\go") {
Remove-Item -Path "${{ github.workspace }}\..\..\_tool\go" -Recurse -Force;
} But then I don't have the cache which means the Windows CI is taking a long time to finish, as it has to download and install Golang everytime. |
Hi there 👋, on:
...
env:
AGENT_ISSELFHOSTED: 1
|
Thanks @priyagupta108 , it works now. is the env var required for self-hosted runners? didn't know. we're testing self-hosted windows. Didn't see this err on Linux before.
|
By the way, I almost forgot to answer, adding |
Description:
EEXIST on windows when adding to cache.
Action version:
actions/setup-go@v5
Platform:
Runner type:
Tools version:
go1.17
Repro steps:
https://github.com/cloudwego/hertz/actions/runs/13171441602/job/36766483015
Expected behavior:
no error
Actual behavior:
error with EEXIST
The text was updated successfully, but these errors were encountered: