You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v3.7.0, the workflow using actions/setup-node started failing for the error described below.
Our repository uses symblic link for some reason, and v3.7.0 had revised cache resolution logic so that I think this is a kind of regression for the change around:
Expected behavior:
A description of what you expected to happen.
The 2nd actions/setup-node@v3 step succeeds.
Actual behavior:
The 2nd actions/setup-node@v3 step fails for the error:
Run actions/setup-node@v3
with:
node-version-file: (snip)
cache: yarn
cache-dependency-path: .../yarn.lock
token: ***
always-auth: false
check-latest: false
Node version file is not JSON file
Resolved .../... (snip)
Found in cache @ /home/runner/_work/_tool/node/12.13.0/... (snip)
Environment details
node: v12.13.0
npm: 612.0
yarn: 1.22.19
Warning: No existing directories found containing cache-dependency-path="(snip)"
All dependencies are managed locally by yarn3, the previous cache can be used
Error: Path Validation Error: At least one directory or file path is required
The text was updated successfully, but these errors were encountered:
Hello @kyontan. We've merged the pull request with possible fix. Could you please try to use actions/setup-node@main to confirm that it works as expected.
Description:
Since v3.7.0, the workflow using
actions/setup-node
started failing for the error described below.Our repository uses symblic link for some reason, and v3.7.0 had revised cache resolution logic so that I think this is a kind of regression for the change around:
setup-node/src/cache-utils.ts
Lines 144 to 152 in e33196f
I've not confirmed the cause, but I expect that the line
.filter(directory => fs.lstatSync(directory).isDirectory());
drops symblic linked.Action version:
v3.7.0
Platform:
Runner type:
Tools version:
Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
Setup repository like following structure:
workflow file:
Expected behavior:
A description of what you expected to happen.
The 2nd
actions/setup-node@v3
step succeeds.Actual behavior:
The 2nd
actions/setup-node@v3
step fails for the error:The text was updated successfully, but these errors were encountered: