Skip to content
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

TypeError: Cannot read properties of undefined (reading '0') on Windows #186

Open
cakebaker opened this issue Jan 31, 2024 · 0 comments
Open

Comments

@cakebaker
Copy link

In our CI log I noticed that all Windows jobs show the error below whereas the action works fine with ubuntu and macOS.

2024-01-30T19:39:06.0866870Z ##[group]Run Swatinem/rust-cache@v2
2024-01-30T19:39:06.0867231Z with:
2024-01-30T19:39:06.0867428Z   prefix-key: v0-rust
2024-01-30T19:39:06.0867663Z   cache-targets: true
2024-01-30T19:39:06.0867920Z   cache-all-crates: false
2024-01-30T19:39:06.0868168Z   save-if: true
2024-01-30T19:39:06.0868381Z   cache-provider: github
2024-01-30T19:39:06.0868615Z env:
2024-01-30T19:39:06.0868804Z   STYLE_FAIL_ON_FAULT: true
2024-01-30T19:39:06.0869058Z   SCCACHE_GHA_ENABLED: true
2024-01-30T19:39:06.0869315Z   RUSTC_WRAPPER: sccache
2024-01-30T19:39:06.0869561Z   CARGO_INCREMENTAL: 0
2024-01-30T19:39:06.0869789Z   CARGO_TERM_COLOR: always
2024-01-30T19:39:06.0870047Z ##[endgroup]
2024-01-30T19:39:07.5920435Z ##[error]TypeError: Cannot read properties of undefined (reading '0')
    at getStatsFromBinding (node:internal/fs/utils:555:10)
    at Object.lstat (node:internal/fs/promises:889:10)

In the workflow file, we simply use:

    - uses: Swatinem/rust-cache@v2

It looks like the issue was introduced in 2.7.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant