Skip to content

Commit

Permalink
Fix build/PulumiSdkVersion.fs
Browse files Browse the repository at this point in the history
IsMatch now has an overload, so we have to specify the type to disambiguate.
  • Loading branch information
justinvp committed Nov 27, 2024
1 parent 577640a commit 92fe64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/PulumiSdkVersion.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let findGoSDKVersion (pulumiSdkPath: string) =
try
let lines = File.ReadAllLines(goMod)
let patternRegex = new Regex("^\\s*github.com/pulumi/pulumi/sdk", RegexOptions.IgnoreCase)
match Array.tryFind (patternRegex.IsMatch) lines with
match Array.tryFind (fun (line: string) -> patternRegex.IsMatch(line)) lines with
| Some(matchingLine) ->
let version = matchingLine.Split(' ')[1]
let version = version.TrimStart('v')
Expand Down

0 comments on commit 92fe64e

Please sign in to comment.