Skip to content

Conversation

@nojaf
Copy link
Member

@nojaf nojaf commented Jan 16, 2026

Fixes #8178

@nojaf nojaf requested a review from cknitt January 16, 2026 13:01
const { stdout, stderr } = await execBuild();

const expectedWarning =
"Duplicated package: z ./node_modules/z (chosen) vs ./a/node_modules/z in ./a";
Copy link
Member

Choose a reason for hiding this comment

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

The check in bsb was taking symlinks into account according to https://github.com/rescript-lang/rescript/blob/86814cea6e8dfd9dbf756a70a2e6c4964a7c5a60/tests/build_tests/duplicated_symlinked_packages/README.md.

Is the check here also doing that? I.e., is it only warning about z or about other packages, too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I believe so, as we use canonicalize()

@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@8180

@rescript/darwin-arm64

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/linux-x64

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

@rescript/runtime

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

@rescript/win32-x64

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

commit: 68afcc0

@nojaf nojaf requested a review from cknitt January 16, 2026 15:25
@nojaf nojaf merged commit d6504c2 into rescript-lang:master Jan 16, 2026
25 checks passed
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 doesn't warn on duplicate packages in dependencies

2 participants