File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use itertools::Itertools;
66use miette:: IntoDiagnostic ;
77use pep508_rs:: Requirement ;
88use pixi_build_frontend:: BackendOverride ;
9- use pixi_config:: Config ;
9+ use pixi_config:: { Config , pixi_home } ;
1010use pixi_consts:: consts;
1111use pixi_core:: DependencyType ;
1212use pixi_core:: Workspace ;
@@ -47,10 +47,10 @@ impl WorkspaceConfig {
4747 if let Some ( manifest_path) = & self . manifest_path {
4848 DiscoveryStart :: ExplicitManifest ( manifest_path. clone ( ) )
4949 } else if let Some ( workspace) = & self . workspace {
50- let config = Config :: load_global ( ) ;
51- let path = config
52- . named_workspace ( & workspace . to_string ( ) )
53- . expect ( "Unable to find workspace" ) ;
50+ let path = pixi_home ( )
51+ . expect ( "Unable to pixi home" )
52+ . join ( consts :: DEFAULT_GLOBAL_WORKSPACE_DIR )
53+ . join ( & workspace) ;
5454 DiscoveryStart :: ExplicitManifest ( path. clone ( ) )
5555 } else {
5656 DiscoveryStart :: CurrentDir
You can’t perform that action at this time.
0 commit comments