conda / conda-lock

Lightweight lockfile for conda environments
https://conda.github.io/conda-lock/
Other
458 stars 102 forks source link

conda-lock is incompatible with pydantic 2 #472

Closed pavelzw closed 11 months ago

pavelzw commented 11 months ago

Checklist

What happened?

I have conda-lock installed via brew (it uses pydantic 2 for the build) and when I enter conda-lock render --help, I get the following warnings:

❯ conda-lock render --help
/opt/homebrew/Cellar/conda-lock/2.1.1/libexec/lib/python3.11/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
* 'json_encoders' has been removed
  warnings.warn(message, UserWarning)
/opt/homebrew/Cellar/conda-lock/2.1.1/libexec/lib/python3.11/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
* 'allow_mutation' has been removed
  warnings.warn(message, UserWarning)
Usage: conda-lock render [OPTIONS] [LOCK_FILE]
[...]

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

maresb commented 11 months ago

Thanks for the report!

These warning should be just warnings.

We have a fix in #459 for the next release.

Are you able to ignore the warnings? If you discover any malfunctions as a result, then please let us know!

pavelzw commented 11 months ago

Yes, sure!

maresb commented 11 months ago

Let's leave this open for visibility until we release #459.