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

Revert environment variables instead of setting them to an empty string #5039

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Feb 3, 2022

No description provided.

@rjbou rjbou added this to the 2.2.0~alpha milestone Feb 3, 2022
Comment on lines +112 to +148
if v = [] then
OpamConsole.msg "set -ge %s;\n" k
else
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

need to check for fish if it's ok to unset manpath

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in fact, it seems that it fixes it

@rjbou
Copy link
Collaborator Author

rjbou commented Feb 4, 2022

In fact it was broken in windows & fish since a while

@dra27
Copy link
Member

dra27 commented May 17, 2022

Related to #4690

@@ -103,6 +109,9 @@ let print_sexp_env env =
let rec print_fish_env env =
let set_arr_cmd ?(modf=fun x -> x) k v =
let v = modf @@ OpamStd.String.split v ':' in
Copy link
Member

Choose a reason for hiding this comment

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

Academic, but this should hopefully fix the tests:

Suggested change
let v = modf @@ OpamStd.String.split v ':' in
let v = modf @@ OpamStd.String.split v OpamStd.Sys.path_sep in

@dra27 dra27 removed this from the 2.2.0~alpha milestone Jan 23, 2023
@rjbou rjbou marked this pull request as draft July 10, 2024 14:17
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