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

Improve error message when src directory for repo add doesn't exist #5689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

punchagan
Copy link
Contributor

Closes #5632

@rjbou rjbou self-requested a review September 29, 2023 15:40
@rjbou
Copy link
Collaborator

rjbou commented Sep 29, 2023

Thanks for the PR. On the general idea, lgtm!
I'll add a test to it, in order to complete it.

@punchagan
Copy link
Contributor Author

I'll add a test to it, in order to complete it.

There are some existing tests which already fail because of this change. I will go ahead and fix them, to begin with.

@rjbou
Copy link
Collaborator

rjbou commented Oct 2, 2023

I've added a commit that contains the code review & test update.

@punchagan
Copy link
Contributor Author

Thanks for the code improvements and the test fixes, @rjbou !

@punchagan
Copy link
Contributor Author

Thanks for the code improvements and the test fixes, @rjbou !

Let me know if I need to do anything more to finish this PR, @rjbou ! Thanks!

@rjbou rjbou force-pushed the improve-opam-repo-add-error branch from 2cb75c1 to b088191 Compare November 23, 2023 09:57
@rjbou
Copy link
Collaborator

rjbou commented Nov 23, 2023

I've updated the PR, a review from @kit-ty-kate and it's good to merge!

@rjbou
Copy link
Collaborator

rjbou commented Nov 23, 2023

Sorry for the delay, we are focusing on the release, and there is only me and partly kate working on opam.

@punchagan
Copy link
Contributor Author

Sorry for the delay, we are focusing on the release, and there is only me and partly kate working on opam.

Thank you for your work on opam!

No worries at all -- I'm not in a hurry to have this merged. I just didn't want to leave it hanging there, and wanted clarity on whether it's waiting on me.

@kit-ty-kate kit-ty-kate removed their request for review May 9, 2024 13:25
@rjbou rjbou requested a review from kit-ty-kate August 19, 2024 18:41
@rjbou rjbou force-pushed the improve-opam-repo-add-error branch from b088191 to 87c1063 Compare August 19, 2024 18:42
Copy link
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

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

Compared to #6027 I think the errors are less readable. A good error message already exist in the data (the second value of the pair) and duplicating it seems superfluous.

Closes ocaml#5632

Co-authored-by: Raja Boujbel <raja.boujbel@ocamlpro.com>
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.

opam 2.1.4 fails to add a local repository if opam repo add is invoked from a "grandparent directory"
3 participants