Skip to content

test(melange): incorrect path when public lib depends on private lib - #7652

Merged
anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:anmonteiro/test-private
May 4, 2023
Merged

anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:anmonteiro/test-private

Conversation

@anmonteiro

Copy link
Copy Markdown
Collaborator
  • This is the first "missing test case" from Missing melange tests #7164
  • it uncovers a path resolution bug when a public library (which gets installed into node_modules) depends on a private library.

I think this should be fine for installed libraries (I'll add a test too), but it's currently broken for libraries in the workspace.

@anmonteiro anmonteiro added the melange Melange rules and generator label Apr 27, 2023
@anmonteiro
anmonteiro marked this pull request as ready for review April 27, 2023 20:22
@anmonteiro
anmonteiro force-pushed the anmonteiro/test-private branch from 23dc067 to 33dae34 Compare April 27, 2023 20:22
@anmonteiro
anmonteiro requested a review from jchavarri April 27, 2023 20:36
> EOF

$ dune build @melange --display=short
melc priv/.priv.objs/melange/priv.{cmi,cmj,cmt}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Anything in particular that we need to see from this output?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I removed --display=short

@anmonteiro
anmonteiro force-pushed the anmonteiro/test-private branch from 33dae34 to 168bc21 Compare May 4, 2023 17:50
@anmonteiro
anmonteiro force-pushed the anmonteiro/test-private branch from 168bc21 to 271f5fd Compare May 4, 2023 18:08
@anmonteiro
anmonteiro merged commit 239e6ac into ocaml:main May 4, 2023
@anmonteiro
anmonteiro deleted the anmonteiro/test-private branch May 4, 2023 18:46
@Alizter Alizter added this to the 3.8.0 milestone Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

melange Melange rules and generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants