Skip to content

Commit

Permalink
Fix EISDIR error due to globbed directories (#1) (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
friegger committed May 2, 2023
1 parent 6fd3edf commit 99229f9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/globbed-directories.yml
@@ -0,0 +1,23 @@
name: globbed-directories

on: [push, pull_request]

jobs:
simple:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]

name: Test `cargo check/test` on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

env:
CARGO_TERM_COLOR: always

steps:
- uses: actions/checkout@v3
- name: Create folder that will be globbed
run: |
mkdir -p folder/rust-toolchain
- uses: ./
1 change: 1 addition & 0 deletions src/config.ts
Expand Up @@ -141,6 +141,7 @@ export class CacheConfig {
)),
);
}
keyFiles = keyFiles.filter(file => !fs.statSync(file).isDirectory());
keyFiles.sort((a, b) => a.localeCompare(b));

hasher = crypto.createHash("sha1");
Expand Down

0 comments on commit 99229f9

Please sign in to comment.