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

add environment variable expansion for environment variables #12742

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rafaelmartins
Copy link

Description

This closes #12645.

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?

@rafaelmartins rafaelmartins requested a review from a team as a code owner June 2, 2023 13:06
@conda-bot
Copy link
Contributor

We require contributors to sign our Contributor License Agreement and we don't have one on file for @rafaelmartins.

In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#773), and ping the bot to refresh the PR.

@rafaelmartins
Copy link
Author

We require contributors to sign our Contributor License Agreement and we don't have one on file for @rafaelmartins.

In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#773), and ping the bot to refresh the PR.

signed

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jun 5, 2023
Copy link
Member

@jezdez jezdez left a comment

Choose a reason for hiding this comment

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

As mentioned in #12074 I don't think we should pile on env update like this, this is broadening the scope of the config parsing differences between different parts of conda, which is opposite to what we should be doing.

IOW, this really needs a refactoring.

#12074 (comment) is an important insight:

[..] but unfortunately there exists multiple classes in conda for doing this. In conda, there is both conda and conda_env and both of these modules have their own classes and functions for parsing configuration, specifically YAML files. This is because conda_env used to be its own project and was brought in to the main conda code sometime ago.

#11633 remains true and I feel we're working backwards here basically.

conda_env/env.py Outdated Show resolved Hide resolved
conda_env/env.py Outdated Show resolved Hide resolved
@rafaelmartins
Copy link
Author

As mentioned in #12074 I don't think we should pile on env update like this, this is broadening the scope of the config parsing differences between different parts of conda, which is opposite to what we should be doing.

IOW, this really needs a refactoring.

#12074 (comment) is an important insight:

[..] but unfortunately there exists multiple classes in conda for doing this. In conda, there is both conda and conda_env and both of these modules have their own classes and functions for parsing configuration, specifically YAML files. This is because conda_env used to be its own project and was brought in to the main conda code sometime ago.

#11633 remains true and I feel we're working backwards here basically.

do you have a suggestion of proper design for this?

@travishathaway
Copy link
Contributor

@rafaelmartins,

The proper design for this would essentially see us adding conda env abilities (e.g. being about to read directly from an environment file using conda update). Because of that, we might deprecate the usage of conda env commands in the future (this still isn't a sure thing though).

Therefore, we are currently hesitant about adding new features/abilities to anything under conda env. I hope you understand, and I apologize for not communicating that more effectively earlier.

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
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

Variable expansion when setting environment variables from env.yaml
4 participants