Skip to content

Commit

Permalink
scripts/sanitycheck: fix nuget check
Browse files Browse the repository at this point in the history
This got broken when moving solutions to sub /src/ folder [1].

[1] 03db5e5
  • Loading branch information
Mersho authored and knocte committed Oct 20, 2023
1 parent 097dd27 commit c00f9e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/fsxHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module FsxHelper =

let ScriptsDir = __SOURCE_DIRECTORY__ |> DirectoryInfo
let RootDir = Path.Combine(ScriptsDir.FullName, "..") |> DirectoryInfo
let SourceDir = Path.Combine(RootDir.FullName, "src") |> DirectoryInfo
let NugetDir = Path.Combine (RootDir.FullName, ".nuget") |> DirectoryInfo
let NugetExe = Path.Combine (NugetDir.FullName, "nuget.exe") |> FileInfo
let NugetSolutionPackagesDir = Path.Combine(RootDir.FullName, "packages") |> DirectoryInfo
Expand Down
6 changes: 3 additions & 3 deletions scripts/sanitycheck.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ let SanityCheckNugetPackages () =
//let solutions = Directory.GetCurrentDirectory() |> DirectoryInfo |> findSolutions
//NOTE: we hardcode the solutions rather than the line above, because e.g. Linux OS can't build/restore iOS proj
let solutionFileNames = [
Path.Combine(FsxHelper.RootDir.FullName, "gwallet.linux.sln")
Path.Combine(FsxHelper.RootDir.FullName, "gwallet.mac.sln")
Path.Combine(FsxHelper.RootDir.FullName, "gwallet.core.sln")
Path.Combine(FsxHelper.SourceDir.FullName, "gwallet.linux-legacy.sln")
Path.Combine(FsxHelper.SourceDir.FullName, "gwallet.mac-legacy.sln")
Path.Combine(FsxHelper.SourceDir.FullName, "gwallet.core-legacy.sln")
]

let solutionFiles = solutionFileNames |> List.map FileInfo
Expand Down

0 comments on commit c00f9e4

Please sign in to comment.