Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/app/Fake.DotNet.Paket/Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ let internal createProcess (runType:StartType) =
|> Arguments.appendIf parameters.IncludeReferencedProjects "--include-referenced-projects"
|> List.foldBack (fun t -> Arguments.append ["--exclude"; t]) parameters.ExcludedTemplates
|> List.foldBack (fun (id, v) -> Arguments.append ["--specific-version"; id; v]) parameters.SpecificVersions
|> Arguments.append [parameters.OutputPath]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it ok to put it at the end? (I don't recall what append does but I think it adds to the end)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I also hope that it is added to the end =)
I checked docs https://fsprojects.github.io/Paket/paket-pack.html
and find out that it should last param
paket_pack

|> startPaket parameters.ToolType parameters.ToolPath parameters.WorkingDir parameters.TimeOut
| Restore (parameters) ->
Arguments.OfArgs ["restore"]
Expand Down
2 changes: 1 addition & 1 deletion src/test/Fake.Core.UnitTests/Fake.DotNet.Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let tests =
|> ArgumentHelper.checkIfMono
let cmd = args |> Arguments.toStartInfo
Expect.equal file expectedPath "Expected paket.exe"
Expect.equal cmd "pack" "expected pack argument"
Expect.equal cmd "pack ./temp" "expected pack command line"
testCase "Test push is not missing, #2411" <| fun _ ->
let cp =
Paket.createProcess (Paket.StartType.PushFile (Paket.PaketPushDefaults(), "testfile"))
Expand Down