From 5449e97048595e332a5d3b379c6ed67f714e51fe Mon Sep 17 00:00:00 2001 From: Roman Pavlov Date: Wed, 24 Feb 2016 12:25:08 +0300 Subject: [PATCH] Added support for Paket's Pack `minimum-from-lock-file` switch --- src/app/FakeLib/PaketHelper.fs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/FakeLib/PaketHelper.fs b/src/app/FakeLib/PaketHelper.fs index c2679588661..78f8028c996 100755 --- a/src/app/FakeLib/PaketHelper.fs +++ b/src/app/FakeLib/PaketHelper.fs @@ -21,7 +21,8 @@ type PaketPackParams = WorkingDir : string OutputPath : string Symbols : bool - IncludeReferencedProjects : bool } + IncludeReferencedProjects : bool + MinimumFromLockFile : bool } /// Paket pack default parameters let PaketPackDefaults() : PaketPackParams = @@ -38,7 +39,8 @@ let PaketPackDefaults() : PaketPackParams = WorkingDir = "." OutputPath = "./temp" Symbols = false - IncludeReferencedProjects = false } + IncludeReferencedProjects = false + MinimumFromLockFile = false } /// Paket push parameter type type PaketPushParams = @@ -101,9 +103,10 @@ let Pack setParams = let specificVersions = parameters.SpecificVersions |> Seq.map (fun (id,v) -> sprintf " specific-version %s %s" id v) |> String.concat " " let symbols = if parameters.Symbols then " symbols" else "" let includeReferencedProjects = if parameters.IncludeReferencedProjects then " include-referenced-projects" else "" + let minimumFromLockFile = if parameters.MinimumFromLockFile then " minimum-from-lock-file" else "" let packResult = - let cmdArgs = sprintf "%s%s%s%s%s%s%s%s%s%s" version specificVersions releaseNotes buildConfig buildPlatform templateFile lockDependencies excludedTemplates symbols includeReferencedProjects + let cmdArgs = sprintf "%s%s%s%s%s%s%s%s%s%s%s" version specificVersions releaseNotes buildConfig buildPlatform templateFile lockDependencies excludedTemplates symbols includeReferencedProjects minimumFromLockFile ExecProcess (fun info -> info.FileName <- parameters.ToolPath