From b8003f0e27e13373a34d5bca0d8f0d1f9ff11831 Mon Sep 17 00:00:00 2001 From: Seb <4062679+hellos3b@users.noreply.github.com> Date: Tue, 30 Aug 2022 08:31:53 -0700 Subject: [PATCH 1/2] Close the lock file after opening --- rescript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rescript b/rescript index 03d6a87367..f200dc0d6b 100755 --- a/rescript +++ b/rescript @@ -204,7 +204,8 @@ function acquireBuild() { return false; } else { try { - fs.openSync(lockFileName, "wx", 0o664); + const fid = fs.openSync(lockFileName, "wx", 0o664); + fs.closeSync(fid); is_building = true; } catch (err) { if (err.code === "EEXIST") { From 4912688f89352088865d2d6fbfecae06f55981a5 Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Tue, 30 Aug 2022 17:50:29 +0200 Subject: [PATCH 2/2] Add changelog for 10.0.1. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d64e65f125..6cdb4b06dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,12 @@ - Print patterns in warnings using rescript printer https://github.com/rescript-lang/rescript-compiler/pull/5492 +# 10.0.1 + +#### :bug: Bug Fix + +- Fix issue where watch mode would give an error on Windows https://github.com/rescript-lang/rescript-compiler/pull/5621 + # 10.0.0 **Compiler**