Skip to content

Commit

Permalink
README: update_conda_lock: Include a pip issue information
Browse files Browse the repository at this point in the history
  • Loading branch information
ajelinski committed May 21, 2021
1 parent 6970a7e commit c7ccc09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ The inputs to this action are (bold ones are **required**):
* `user_email`: Email address of the user creating commit.
* `user_name`: Name of the user creating commit.

In certain circumstances pip, internally run when Conda creates the environment, might fail due to an alleged conflict in Conda Lock git-based packages.
Until [the pip issue](https://github.com/pypa/pip/issues/10002) is fixed, it can be avoided by making pip install packages without their dependencies.
With Conda Lock it's absolutely safe to do so since all pip packages, including the dependencies of packages specified directly, are always included in the Conda Lock.
What's more, the package versions are all locked in Conda Lock so these dependencies can't change.

Therefore currently the safest way to create Conda environment using the Conda Lock is:
```
env PIP_NO_DEPS="true" conda env create -f $CONDA_LOCK_FILE`
```

# Examples

These are examples of using "includable" workflows. Put these in
Expand Down

0 comments on commit c7ccc09

Please sign in to comment.