Skip to content

Commit

Permalink
ci (eslint-e2e): exclude nested node_modules from cache
Browse files Browse the repository at this point in the history
This change removes the nested fixture node_modules from being cached, so that the symbolic link can be made after the build happens.

ci (eslint-e2e): exclude nested `node_modules` from cache

This change removes the nested fixture node_modules from being cached, so that the symbolic link can be made after the build happens.
  • Loading branch information
michaelfaith committed Feb 17, 2025
1 parent 077a4b0 commit 6ea4c0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/runtime_eslint_plugin_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: actions/cache@v4
id: node_modules
with:
path: "**/node_modules"
path: "node_modules"
key: runtime-eslint_e2e-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Ensure clean build directory
run: rm -rf build
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ const rule = {
// Get the current scope.
const scope = scopeManager.acquire(node);
if (!scope) {
throw new Error('Unable to acquire scope for the current node.');
throw new Error(
'Unable to acquire scope for the current node. This is a bug in eslint-plugin-react-hooks, please file an issue.',
);
}

// Find all our "pure scopes". On every re-render of a component these
Expand Down

0 comments on commit 6ea4c0d

Please sign in to comment.