Skip to content

test(pkg): invalid package dependency bug#9269

Merged
rgrinberg merged 1 commit intoocaml:mainfrom
Alizter:ps/branch/test_pkg___invalid_package_dependency_bug
Nov 22, 2023
Merged

test(pkg): invalid package dependency bug#9269
rgrinberg merged 1 commit intoocaml:mainfrom
Alizter:ps/branch/test_pkg___invalid_package_dependency_bug

Conversation

@Alizter
Copy link
Copy Markdown
Collaborator

@Alizter Alizter commented Nov 22, 2023

See #9270

Signed-off-by: Ali Caglayan <alizter@gmail.com>
> (depends foo.1.2.3))
> EOF

$ dune pkg lock 2>&1 | head -n1
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.

What's the error message when we try to build the project?

If we have a good error message, it should come regardless if the user is using this feature or not.

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.

There is no error message, only a complaint that the package is empty. When passing (allow_empty) there is still no error.

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.

Okay, then please include this in a separate test outside of pkg/. I think this is where we should fix the issue first.

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.

OK I've done that in #9271. I'm keeping this test since it's specifically about dune pkg lock.

@rgrinberg rgrinberg merged commit 9c230eb into ocaml:main Nov 22, 2023
@Alizter Alizter deleted the ps/branch/test_pkg___invalid_package_dependency_bug branch November 22, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants