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

Add read_package_file function #472

Merged
merged 4 commits into from
Jan 9, 2024
Merged

Conversation

wolfv
Copy link
Contributor

@wolfv wolfv commented Jan 9, 2024

This function allows us to extract a single PackageFile from a given archive.

@wolfv wolfv force-pushed the extract-package-file branch from 4761941 to 51e4441 Compare January 9, 2024 11:29
@wolfv wolfv merged commit 0e5de39 into conda:main Jan 9, 2024
13 checks passed
@wolfv wolfv deleted the extract-package-file branch January 9, 2024 11:47
@@ -45,7 +45,8 @@ impl SimpleChannelServer {

// Spawn the server. Let go of the JoinHandle, we can use the graceful shutdown trigger to
// stop the server.
let _ = tokio::spawn(server);
let future = tokio::spawn(server);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should just be _future instead of dropping.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

clippy was suggesting this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah its a bug. Assignment to _ immediately drops the value. Which might be counterintuitive. But we do want to keep the value around (I think).

But whatever, the tests still succeed so nvm!

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