diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bf93f86b..9c2c42e04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - +## Unreleased + +### Fixed + +- Fix a bug that may have resulted in Wireit attempting to open too many files + at once (no known reports). ## [0.14.9] - 2024-09-03 diff --git a/eslint.config.js b/eslint.config.js index 6a4c66e6f..9d8786b3c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -54,7 +54,6 @@ export default tseslint.config( '@typescript-eslint/no-unnecessary-type-arguments': 'off', '@typescript-eslint/no-unnecessary-template-expression': 'off', '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off', - '@typescript-eslint/return-await': 'off', }, }, ); diff --git a/src/util/fs.ts b/src/util/fs.ts index 0f7171268..a438e7a05 100644 --- a/src/util/fs.ts +++ b/src/util/fs.ts @@ -76,7 +76,7 @@ export async function mkdir( ): Promise { const reservation = await fileBudget.reserve(); try { - return fs.mkdir(path, options); + return await fs.mkdir(path, options); } finally { reservation[Symbol.dispose](); } @@ -85,7 +85,7 @@ export async function mkdir( export async function mkdtemp(path: string): Promise { const reservation = await fileBudget.reserve(); try { - return fs.mkdtemp(path); + return await fs.mkdtemp(path); } finally { reservation[Symbol.dispose](); } @@ -98,7 +98,7 @@ export async function writeFile( ): Promise { const reservation = await fileBudget.reserve(); try { - return fs.writeFile(path, contents, encoding); + return await fs.writeFile(path, contents, encoding); } finally { reservation[Symbol.dispose](); } @@ -110,7 +110,7 @@ export async function readFile( ): Promise { const reservation = await fileBudget.reserve(); try { - return fs.readFile(path, encoding); + return await fs.readFile(path, encoding); } finally { reservation[Symbol.dispose](); } @@ -122,7 +122,7 @@ export async function rm( ): Promise { const reservation = await fileBudget.reserve(); try { - return fs.rm(path, options); + return await fs.rm(path, options); } finally { reservation[Symbol.dispose](); } @@ -131,7 +131,7 @@ export async function rm( export async function lstat(path: string): Promise { const reservation = await fileBudget.reserve(); try { - return fs.lstat(path); + return await fs.lstat(path); } finally { reservation[Symbol.dispose](); } @@ -140,7 +140,7 @@ export async function lstat(path: string): Promise { export async function stat(path: string): Promise { const reservation = await fileBudget.reserve(); try { - return fs.stat(path); + return await fs.stat(path); } finally { reservation[Symbol.dispose](); } @@ -149,7 +149,7 @@ export async function stat(path: string): Promise { export async function access(path: string): Promise { const reservation = await fileBudget.reserve(); try { - return fs.access(path); + return await fs.access(path); } finally { reservation[Symbol.dispose](); }