Skip to content

Commit

Permalink
Merge pull request #535 from jacksmith15/fix/464/fix-platform-validation
Browse files Browse the repository at this point in the history
Fix platform validation for non-default names
  • Loading branch information
maresb committed Oct 21, 2023
2 parents c2975fe + 670fb6b commit 3084f6c
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 3084f6c

Please sign in to comment.