@@ -811,11 +811,6 @@ pub struct Config {
811811 #[ serde( skip_serializing_if = "Option::is_none" ) ]
812812 pub tool_platform : Option < Platform > ,
813813
814- /// Mapping of a named workspaces to the path of their manifest file.
815- #[ serde( default ) ]
816- #[ serde( skip_serializing_if = "HashMap::is_empty" ) ]
817- pub named_workspaces : HashMap < String , PathBuf > ,
818-
819814 //////////////////////
820815 // Deprecated fields //
821816 //////////////////////
@@ -851,7 +846,6 @@ impl Default for Config {
851846 proxy_config : ProxyConfig :: default ( ) ,
852847 build : BuildConfig :: default ( ) ,
853848 tool_platform : None ,
854- named_workspaces : HashMap :: new ( ) ,
855849
856850 // Deprecated fields
857851 change_ps1 : None ,
@@ -1386,7 +1380,6 @@ impl Config {
13861380 "experimental" ,
13871381 "experimental.use-environment-activation-cache" ,
13881382 "mirrors" ,
1389- "named-workspaces" ,
13901383 "pinning-strategy" ,
13911384 "proxy-config" ,
13921385 "proxy-config.http" ,
@@ -1463,11 +1456,6 @@ impl Config {
14631456 proxy_config : self . proxy_config . merge ( other. proxy_config ) ,
14641457 build : self . build . merge ( other. build ) ,
14651458 tool_platform : self . tool_platform . or ( other. tool_platform ) ,
1466- named_workspaces : self
1467- . named_workspaces
1468- . into_iter ( )
1469- . merge ( other. named_workspaces )
1470- . collect ( ) ,
14711459
14721460 // Deprecated fields that we can ignore as we handle them inside `shell.` field
14731461 change_ps1 : None ,
@@ -1591,19 +1579,6 @@ impl Config {
15911579 Ok ( result)
15921580 }
15931581
1594- /// Retrieve the value for the named-workspaces field.
1595- pub fn named_workspaces_map ( & self ) -> & std:: collections:: HashMap < String , PathBuf > {
1596- & self . named_workspaces
1597- }
1598-
1599- /// Retrieve the path to the manifest file for a named workspaces.
1600- pub fn named_workspace ( & self , name : & String ) -> miette:: Result < PathBuf > {
1601- match self . named_workspaces . get ( name) {
1602- Some ( path) => Ok ( path. clone ( ) ) ,
1603- None => Err ( miette:: diagnostic!( "Named workspace '{}' not found" , name) . into ( ) ) ,
1604- }
1605- }
1606-
16071582 /// Modify this config with the given key and value
16081583 ///
16091584 /// # Note
@@ -1679,13 +1654,6 @@ impl Config {
16791654 . transpose ( )
16801655 . into_diagnostic ( ) ?;
16811656 }
1682- "named-workspaces" => {
1683- self . named_workspaces = value
1684- . map ( |v| serde_json:: de:: from_str ( & v) )
1685- . transpose ( )
1686- . into_diagnostic ( ) ?
1687- . unwrap_or_default ( ) ;
1688- }
16891657 key if key. starts_with ( "repodata-config" ) => {
16901658 if key == "repodata-config" {
16911659 self . repodata_config = value
@@ -2353,7 +2321,6 @@ UNUSED = "unused"
23532321 proxy_config : ProxyConfig :: default ( ) ,
23542322 build : BuildConfig :: default ( ) ,
23552323 tool_platform : None ,
2356- named_workspaces : HashMap :: new ( ) ,
23572324 // Deprecated keys
23582325 change_ps1 : None ,
23592326 force_activate : None ,
0 commit comments