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

Enable elevation on non-Windows platforms #138

Merged
merged 11 commits into from
Jul 5, 2023

Conversation

jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Jun 29, 2023

Description

Closes #137

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jun 29, 2023
@@ -352,6 +350,7 @@ def wrapper_elevate(
f"{func.__name__}("
f"*{args!r},"
f"base_prefix={base_prefix!r},"
f"_mode='system',"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mrclary - this was the bug 😬

Copy link

Choose a reason for hiding this comment

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

... when .noadmin is absent and user_is_admin() is False. So when a non-admin user runs menuinst from the commandline? When constructor runs for all users, user_is_admin() should return True, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, I meant in addition to the early return fix you pointed out in the comment.

As you mention, this fixes CLI driven installs, like conda or menuinst. Your report also led me to adding conda/constructor@3f0b97b.

@jaimergp jaimergp marked this pull request as ready for review July 4, 2023 14:31
@jaimergp jaimergp requested a review from a team as a code owner July 4, 2023 14:31
@jaimergp jaimergp merged commit bfa9af5 into conda:cep-devel Jul 5, 2023
@jaimergp jaimergp added this to the v2.0 milestone Sep 13, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants