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

Fix platform validation for non-default names #535

Merged
merged 1 commit into from Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion conda_lock/conda_lock.py
Expand Up @@ -1475,7 +1475,7 @@ def install(
install_func = partial(
do_conda_install, conda=_conda_exe, prefix=prefix, name=name, copy=copy
)
if validate_platform and not lock_file.name.endswith(DEFAULT_LOCKFILE_NAME):
if validate_platform and _detect_lockfile_kind(lock_file) != "lock":
lockfile_contents = read_file(lock_file)
try:
do_validate_platform(lockfile_contents)
Expand Down