File tree Expand file tree Collapse file tree
crates/pixi_core/src/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ pub enum DiscoveryStart {
4040
4141impl DiscoveryStart {
4242 /// Returns the path where the search should start.
43- pub fn path ( & self ) -> std :: io :: Result < PathBuf > {
43+ pub fn path ( & self ) -> miette :: Result < PathBuf , WorkspaceLocatorError > {
4444 match self {
45- DiscoveryStart :: CurrentDir => std:: env:: current_dir ( ) ,
45+ DiscoveryStart :: CurrentDir => std:: env:: current_dir ( ) . map_err ( WorkspaceLocatorError :: CurrentDir ) ,
4646 DiscoveryStart :: SearchRoot ( path) => Ok ( path. clone ( ) ) ,
4747 DiscoveryStart :: ExplicitManifest ( path) => Ok ( path. clone ( ) ) ,
4848 DiscoveryStart :: WorkspaceRegistry ( name) => {
@@ -131,13 +131,6 @@ pub enum WorkspaceLocatorError {
131131 MissingWorkspacePath { name : String , path : PathBuf } ,
132132}
133133
134- impl From < WorkspaceLocatorError > for std:: io:: Error {
135- fn from ( err : WorkspaceLocatorError ) -> Self {
136- // Create a new std::io::Error, using Other kind and the source error
137- std:: io:: Error :: other ( err)
138- }
139- }
140-
141134impl WorkspaceLocator {
142135 /// Constructs a new instance tailored for finding the workspace for CLI
143136 /// commands.
You can’t perform that action at this time.
0 commit comments