Skip to content

Conversation

@jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Mar 24, 2025

Description

Closes #960.

Based on #943 to avoid conflicts down the line because this adds new options to construct.yaml. Excuse the diff while 943 gets reviewed.

Windows:

image

macOS:

image

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?

@leofang
Copy link

leofang commented Jun 27, 2025

Hello @jaimergp, thanks a ton for working on this, I've subscribed to this PR for some time and glad to see a momentum building up!

I have a use case for this, but I am not certain the PR as-is would help me once it's merged (mainly because I did not bother reading/understanding the codebase 😛). My use case is

  • I get access to a remote Windows machine
  • An admin-level account will execute my ansible playbooks to install things I need, including miniforge
  • I log in as a user (with admin access too) after playbooks are executed. I expect at this point miniforge's conda is in my PATH so that I don't have to do anything to run conda create ....

Would this work? Thanks!

@jaimergp
Copy link
Contributor Author

jaimergp commented Jul 7, 2025

An admin-level account will execute my ansible playbooks to install things I need, including miniforge

Hey @leofang! Windows admin accounts are not allowed to modify PATH with these installers due to CVE-2022-26526. You can, however, run /path/to/installation/python.exe -m conda init --condabin in your ansible playbooks after the installation and it should work. Otherwise, I think you could also resort to this Ansible module?

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Jul 10, 2025
@jaimergp jaimergp merged commit 075d3ac into conda:main Jul 17, 2025
19 checks passed
@jaimergp jaimergp deleted the condabin branch July 17, 2025 09:31
@github-project-automation github-project-automation bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Support adding condabin/ to PATH

5 participants