Skip to content

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Sep 28, 2025

Bail out of lock::get when the requested project root does not exist so ReScript no longer creates stray folders during failed builds.

Fixes #7926

@cknitt
Copy link
Member Author

cknitt commented Sep 28, 2025

@codex review

Copy link

pkg-pr-new bot commented Sep 28, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7927

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7927

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7927

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7927

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7927

@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@7927

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7927

commit: e0161f9

Copy link

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Copy link
Member

@nojaf nojaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, don't forget the changelog.

@cknitt cknitt merged commit 268996b into rescript-lang:master Sep 29, 2025
25 checks passed
@cknitt cknitt deleted the fix-lock branch September 29, 2025 07:43
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

Successfully merging this pull request may close these issues.

Rewatch: rescript xxx for non-existing folder creates xxx/lib/rescript.lock

2 participants