Skip to content
Merged
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
Fix directory doesn't exist in NugetV2
  • Loading branch information
MrLuje committed Dec 30, 2016
commit 0f91e1b512fce2eafb268ead7e6a9cd60366f259
2 changes: 2 additions & 0 deletions src/Paket.Core/NuGetV2.fs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ let fixArchive fileName =
fixDatesInArchive fileName

let findLocalPackage directory (packageName:PackageName) (version:SemVerInfo) =
if not <| Directory.Exists directory then
failwithf "The package %O %O can't be found in %s. (The directory doesn't exist.)%sPlease check the feed definition in your paket.dependencies file." packageName version directory Environment.NewLine
let v1 = FileInfo(Path.Combine(directory, sprintf "%O.%O.nupkg" packageName version))
if v1.Exists then v1 else
let normalizedVersion = version.Normalize()
Expand Down