Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(pkg): invalid package dependency bug #9269

Conversation

Alizter
Copy link
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
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
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
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
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
26 of 27 checks passed
@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.

None yet

2 participants