-
Notifications
You must be signed in to change notification settings - Fork 460
feat: use command dispatcher for pixi build #4156
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
Changes from all commits
a8980e2
b5db285
f991369
e032b48
f31ff5f
3440ff1
6629afa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ use serde::{Deserialize, Serialize}; | |
| use thiserror::Error; | ||
| use tokio::io::{AsyncReadExt, AsyncSeekExt, AsyncWriteExt}; | ||
|
|
||
| use crate::{BuildEnvironment, build::source_checkout_cache_key}; | ||
| use crate::{BuildEnvironment, PackageIdentifier, build::source_checkout_cache_key}; | ||
|
|
||
| /// A cache for caching the metadata of a source checkout. | ||
| /// | ||
|
|
@@ -231,3 +231,30 @@ pub enum MetadataKind { | |
| /// The result of calling `conda/outputs` on a build backend. | ||
| Outputs { outputs: Vec<CondaOutput> }, | ||
| } | ||
|
|
||
| impl CachedCondaMetadata { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking, does it make sense to make SourceMetadataCache::entry a trait that return CachedCondaMetadata? and we implement it for SourceMetadataCache?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the point of adding a trait though? Its not reused. |
||
| /// Returns the unique package identifiers for the packages in this | ||
| /// metadata. | ||
| pub fn outputs(&self) -> Vec<PackageIdentifier> { | ||
| match &self.metadata { | ||
| MetadataKind::GetMetadata { packages } => packages | ||
| .iter() | ||
| .map(|pkg| PackageIdentifier { | ||
| name: pkg.name.clone(), | ||
| version: pkg.version.clone(), | ||
| build: pkg.build.clone(), | ||
| subdir: pkg.subdir.to_string(), | ||
| }) | ||
| .collect(), | ||
| MetadataKind::Outputs { outputs } => outputs | ||
| .iter() | ||
| .map(|output| PackageIdentifier { | ||
| name: output.metadata.name.clone(), | ||
| version: output.metadata.version.clone(), | ||
| build: output.metadata.build.clone(), | ||
| subdir: output.metadata.subdir.to_string(), | ||
| }) | ||
| .collect(), | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.