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

Conversation

jacksmith15
Copy link
Contributor

Description

#499 added logic to support lockfiles with arbitrary names, by detecting the lockfile kind based on contents rather than name.

However it missed some logic for deciding whether to validate the platform, which still infers lock-file kind from the filename.

This leads to the following error when installing from a lock-file with non-default name:

RuntimeError: Cannot find platform in lockfile.

This can be worked around by passing --no-validate-platform, but is not the intended behaviour.

@jacksmith15 jacksmith15 requested a review from a team as a code owner October 21, 2023 12:09
@netlify
Copy link

netlify bot commented Oct 21, 2023

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 670fb6b
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/6533bf970c0b1e0008c6081a
😎 Deploy Preview https://deploy-preview-535--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@maresb maresb merged commit 3084f6c into conda:main Oct 21, 2023
10 checks passed
@maresb
Copy link
Contributor

maresb commented Oct 21, 2023

Thanks! Just cut a release for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants