actions / actions/toolkit

setup-node v5 fails with Path Validation Error in Post Run steps - change error to warning?

Open
#2,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Upgrading to setup-node v5 causes a a workflow to fail with the following error:

Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.

According to https://github.com/actions/setup-node/issues/1363 the underlying code is in this repository. Not saving a cache doesn't seem like an error that should fail the job, but simply a warning that should be logged. Can this be changed so upgrading to setup-node v5 doesn't require additional changes?

To Reproduce
Steps to reproduce the behavior:

Expected behavior

The job doesn't fail for running npx tools directly.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test; start with the underlying setup-node code referenced in actions/setup-node#1363 and reproduce the linked workflow failure. Done means a missing cache path in a post-run step produces a warning rather than failing the job, while the npx workflow completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.