Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/Paket.Core/Common/Constants.fs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,9 @@ let GitRepoCacheFolder = Path.Combine(LocalRootForTempData,".paket","git","db")
let [<Literal>] GlobalPackagesFolderEnvironmentKey = "NUGET_PACKAGES"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets referenced from

let _ = directPaketInPathExWithEnv "restore" (scenarioTempPath "extracted-package-permissions") [Paket.Constants.GlobalPackagesFolderEnvironmentKey, localNugetDir]
so I suppose removing that would be a breaking change


let UserNuGetPackagesFolder =
getEnVar GlobalPackagesFolderEnvironmentKey
|> Option.map (fun path ->
path.Replace (Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar)
) |> Option.defaultWith (fun _ ->
Path.Combine (LocalRootForTempData,".nuget","packages")
)

NuGet.Configuration.Settings.LoadDefaultSettings(null)
|> NuGet.Configuration.SettingsUtility.GetGlobalPackagesFolder

/// The magic unpublished date is 1900-01-01T00:00:00
let MagicUnlistingDate = DateTimeOffset(1900, 1, 1, 0, 0, 0, TimeSpan.FromHours(-8.)).DateTime
Expand Down