Skip to content

Commit

Permalink
Exception calling ".ctor" with "1" argument(s): (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seasawher authored Oct 5, 2024
1 parent de5132e commit a701e16
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/getLatest.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# get all release tags from leanprover/lean4
# and filter out the ones that are not form of `v*`
$versions = gh release list `
--repo leanprover/lean4 `
--json tagName | `
ConvertFrom-Json | `
ForEach-Object { $_.tagName } | `
ForEach-Object { $_ -replace '^v' }
Where-Object { $_ -like 'v*' }

# parse the version tags as semver
$semvers = $versions | ForEach-Object { [System.Management.Automation.SemanticVersion]::new($_) }
$semvers = $versions | `
ForEach-Object { $_ -replace '^v' } | `
ForEach-Object { [System.Management.Automation.SemanticVersion]::new($_) }

# sort the versions and get the latest one
$latest = $semvers | Sort-Object | Select-Object -Last 1
Write-Host "Latest Lean release is: $latest"
Write-Host "Latest Lean release is: v$latest"

# update `lean-toolchain` file
$leanStyleVersion = "leanprover/lean4:v$latest"
Expand Down

0 comments on commit a701e16

Please # to comment.