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

Fixes to opam init menu #5217

Merged
merged 4 commits into from
Aug 4, 2022
Merged

Fixes to opam init menu #5217

merged 4 commits into from
Aug 4, 2022

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Aug 3, 2022

Three little bugs, all to do with changing the shell using the new opam init menu:

  • On bash, the option crashes opam with Not_found because the list of shells used is the ones for init scripts, not the complete of shells - I've introduced a list containing the full list of shells for this purpose.
  • When selecting a new shell, the default was forced to "Yes". That's a slight issue when the Windows shell comes because "Yes" isn't always an option but it also doesn't really make sense - the default should stay the same
  • Having selected a new shell, opam init then wrote the .profile (or whatever) using the syntax of the old shell!

@dra27 dra27 requested a review from AltGr August 3, 2022 17:26
@dra27 dra27 mentioned this pull request Aug 3, 2022
16 tasks
@dra27 dra27 added this to the 2.2.0~alpha milestone Aug 4, 2022
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

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

lgtm!

dra27 and others added 4 commits August 4, 2022 10:58
For example, opam init was crashing when initialised with bash.
Before the new shell's profile would be written using the old shell's
syntax.
@rjbou rjbou merged commit e5df1e5 into ocaml:master Aug 4, 2022
@dra27 dra27 mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants