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: roundtrip of arch/platform in lock files #1124

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Feb 28, 2025

We were filling in the arch and platform fields in the lockfile if they didn't come from the repodata, but we didn't serialize this information on the first go.

When loading the data from lockfile and re-serializing, we did write it out leading to roundtrip issues as noted in #1073

In this PR we just remove the writing of arch and platform.

}?;
// Convert back to Platform string which should correspond to known subdirs
Ok(plat.to_string())
match arch.parse::<Arch>() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the previous function was not covering e.g. emscripten-wasm32 so I modernized it a bit.

Copy link
Collaborator

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@wolfv wolfv merged commit f02bcd3 into conda:main Feb 28, 2025
16 checks passed
@wolfv wolfv deleted the lockfile-roundtrip branch February 28, 2025 11:49
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.

2 participants