-
Notifications
You must be signed in to change notification settings - Fork 368
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
the opam lock command exits with a non-zero exit code when dependencies are not yet installed in the current switch #6341
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your contribution. Aside from the two individual comments, i can note that the if clause should change from as its return value isn't used in the true
case anymore. Could you change the shape of the if to the following?:
if ... then
error_and_exit... ;
OpamPackage.Set.add nv acc
src/client/opamLockCommand.ml
Outdated
"Skipping %s, dependencies are not satisfied in this switch, \ | ||
not installed packages are:\n%s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message doesn't correspond to the action anymore (skipping vs. aborting)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done but my new error msg might not make any sense grammatically,
as English is not first language help a bit, pls.
This comment was marked as outdated.
This comment was marked as outdated.
|
the text below is the texts of last commits that have been cleaned up and squashed. sorry 1st commit was a mistake Update src/client/opamLockCommand.ml based on suggestions of @kit-ty-kate Co-authored-by: Kate <[email protected]> i commited last time from ipad and sorry for the mistale my error msg needs correction all done all done, this time really
abdb2b1
to
a658c68
Compare
@kit-ty-kate done merge please also can i talk to you about something else here or if you could msg me somewhere else ? i want to contribute more to opam more, i am just getting started so if you could suggest some easy/small issues and walk me through the source tree/code structure that would be nice |
@rjbou @kit-ty-kate any update ? |
Hi, sorry for the wait. Regarding your request for discussion, both @rjbou and i have our email addresses displayed on our github profile, feel free to send us an email. Regarding this here PR, i don't think the new behaviour matches the requested behaviour in #5520. I'm not sure it makes sense to stop as soon as a missing dependency is detected. Maybe keeping the same error message as before but simply returning the fact that an error occurred from this function, then use it to call |
fixed #5520