Skip to content

Commit 996bb82

Browse files
vzarytovskiibaronfel
authored andcommitted
Fixed paths if NUGET_PACKAGES is defined (do not apppend '.nuget/packages' to it for 2nd time).
1 parent a62b74c commit 996bb82

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/FSharp.Test.Utilities/TestFramework.fs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ type FSLibPaths =
172172
{ FSCOREDLLPATH : string }
173173

174174
let getPackagesDir () =
175-
let p = match Environment.GetEnvironmentVariable("NUGET_PACKAGES") with
176-
| null ->
177-
match Environment.GetEnvironmentVariable("USERPROFILE") with
178-
| null -> Environment.GetEnvironmentVariable("HOME")
179-
| p -> p
180-
| path -> path
181-
p ++ ".nuget" ++ "packages"
175+
match Environment.GetEnvironmentVariable("NUGET_PACKAGES") with
176+
| null ->
177+
let path = match Environment.GetEnvironmentVariable("USERPROFILE") with
178+
| null -> Environment.GetEnvironmentVariable("HOME")
179+
| p -> p
180+
path ++ ".nuget" ++ "packages"
181+
| path -> path
182182

183183
let requireFile dir path =
184184
// Linux filesystems are (in most cases) case-sensitive.

0 commit comments

Comments
 (0)