Skip to content

@actions/cache Path Validation Error on Windows #2063

Open
@illusory0x0

Description

@illusory0x0

Log Preview

Run ./
D:\a\typescript-action\typescript-action
file:///D:/a/typescript-action/typescript-action/dist/index.js:74313
	            throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);
	                  ^

Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
    at file:///D:/a/typescript-action/typescript-action/dist/index.js:74313:[2](https://github.com/illusory0x0/typescript-action/actions/runs/15100580018/job/42440928016#step:3:3)0
    at Generator.next (<anonymous>)
    at fulfilled (file:///D:/a/typescript-action/typescript-action/dist/index.js:7[3](https://github.com/illusory0x0/typescript-action/actions/runs/15100580018/job/42440928016#step:3:4)957:59)

Node.js v20.19.1

I just switch windows to ubuntu, action run successfully, you can see more details in here

failed action on windows

success action on ubuntu

example

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions