-
Notifications
You must be signed in to change notification settings - Fork 104
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
on main: conda-lock install fails with "Cannot find platform in lockfile" if lock filename does not end with conda-lock.yml #154
Comments
Due to the fact that conda-lock supports multiple output formats it relies in a rather large part on the extension used in specifying the output format. If you want to have various named lockfiles i would recommend names like
The actual bug here is allowing creation of a unified lockfile without the correct extension. |
OK thanks for your answer! Since I am not aware of conda-lock details, I am kind of giving you the naive user vibe 😉 |
I also just ran into this problem.
I couldn't actually create a lock file:
gave me:
Nothing here indicated to me that the wrong name was used. I manually renamed the file, and after getting the same error message as reported above, I found this. |
On commit 67f8da0 (latest commit at the time of writing). This is not a real blocker since I can make sure conda lock files end with
conda-lock.yml
but it is a surprising behaviour.To reproduce:
Output:
There are two places in
conda_lock/conda_lock.py
that relies onlock_file.endswith(DEFAULT_LOCKFILE_NAME)
.For the record I tried
--no-validate
and I don't really understand the output (there are some warnings about sections being ignored, plus it seems to solve the environment which I don't really expect when I create an environment from a lock file)The text was updated successfully, but these errors were encountered: