@@ -33,14 +33,24 @@ function Get-ToolcacheGoVersions {
3333 return Get-ChildItem $toolcachePath - Name | Sort-Object { [Version ]$_ }
3434}
3535
36- function Build-ToolcacheSection {
37- return @ (
38- [ToolVersionsListNode ]::new(" Ruby" , $ (Get-ToolcacheRubyVersions ), ' ^\d+\.\d+' , " List" ),
39- [ToolVersionsListNode ]::new(" Python" , $ (Get-ToolcachePythonVersions ), ' ^\d+\.\d+' , " List" ),
40- [ToolVersionsListNode ]::new(" PyPy" , $ (Get-ToolcachePyPyVersions ), ' ^\d+\.\d+' , " List" ),
36+ function Build-ToolcacheSection {
37+
38+ $nodes = @ ()
39+
40+ if (-not $os.IsVenturaArm64 ) {
41+ $nodes += @ (
42+ [ToolVersionsListNode ]::new(" Ruby" , $ (Get-ToolcacheRubyVersions ), ' ^\d+\.\d+' , " List" ),
43+ [ToolVersionsListNode ]::new(" PyPy" , $ (Get-ToolcachePyPyVersions ), ' ^\d+\.\d+' , " List" )
44+ )
45+ }
46+
47+ $nodes += @ (
48+ [ToolVersionsListNode ]::new(" Python" , $ (Get-ToolcachePythonVersions ), ' ^\d+\.\d+' , " List" ),
4149 [ToolVersionsListNode ]::new(" Node.js" , $ (Get-ToolcacheNodeVersions ), ' ^\d+' , " List" ),
4250 [ToolVersionsListNode ]::new(" Go" , $ (Get-ToolcacheGoVersions ), ' ^\d+\.\d+' , " List" )
4351 )
52+
53+ return $nodes
4454}
4555
4656function Get-PowerShellModules {
@@ -50,4 +60,4 @@ function Get-PowerShellModules {
5060 $moduleVersions = Get-Module - Name $moduleName - ListAvailable | Select-Object - ExpandProperty Version | Sort-Object - Unique
5161 return [ToolVersionsListNode ]::new($moduleName , $moduleVersions , ' ^\d+' , " Inline" )
5262 }
53- }
63+ }
0 commit comments