Skip to content

Conversation

@cknitt
Copy link
Member

@cknitt cknitt commented Jan 16, 2026

Build Tests: Rewatch Migration

Summary

This change set migrates build tests off the legacy build system and onto the rewatch CLI, updating expectations where output/behavior differs.

Removed

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 16, 2026

Open in StackBlitz

rescript

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

@rescript/darwin-arm64

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/linux-x64

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

@rescript/runtime

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

@rescript/win32-x64

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

commit: cc251b2

@cknitt cknitt requested a review from nojaf January 16, 2026 12:00
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.

I'm on the fence here.
Tis not really ready to fully rip out rescript-legacy imho.
Won't it be more cathartic if we solve #8178?
It doesn't seem to hard to implement.


const { execBuildLegacy, execCleanLegacy } = setup(import.meta.dirname);
// Deactivated because of https://github.com/rescript-lang/rescript/issues/8178
process.exit(0);
Copy link
Member

Choose a reason for hiding this comment

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

I feel more inclined to fix #8178 first and not shortcut here.

Yes, that would mean you are not able to remove execBuildLegacy, execCleanLegacy but it would be better to highlight we are not there yet.

* @param {ExecOptions} [options]
* @return {Promise<ExecResult>}
*/
execBuildLegacy(args = [], options = {}) {
Copy link
Member

Choose a reason for hiding this comment

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

See other comment, but I would not remove this just yet.

# Conflicts:
#	tests/build_tests/duplicated_symlinked_packages/input.js
@cknitt cknitt force-pushed the remove-legacy-builds branch from d34710f to cc251b2 Compare January 16, 2026 16:16
@cknitt cknitt requested a review from nojaf January 16, 2026 16:27
@cknitt
Copy link
Member Author

cknitt commented Jan 16, 2026

@nojaf Rebased

@cknitt cknitt merged commit b1363f0 into rescript-lang:master Jan 16, 2026
25 checks passed
@cknitt cknitt deleted the remove-legacy-builds branch January 17, 2026 07:59
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.

2 participants