Skip to content

Commit

Permalink
Make the output path relative to the dependencies file - closes #829
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed May 28, 2015
1 parent e580c9d commit 4260123
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 1.6.4 - 28.05.2015
* Make the output path relative to the dependencies file - https://github.com/fsprojects/Paket/issues/829

#### 1.6.3 - 28.05.2015
* BUGFIX: Parse NuGet package prerelease versions containing "-" - https://github.com/fsprojects/Paket/issues/841

Expand Down
5 changes: 3 additions & 2 deletions src/Paket.Core/PackageProcess.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ open Paket.PackageMetaData
open Chessie.ErrorHandling

let Pack(dependencies : DependenciesFile, packageOutputPath, buildConfig, version, releaseNotes, templateFile) =
let buildConfig = defaultArg buildConfig "Release"
Utils.createDir packageOutputPath |> returnOrFail
let buildConfig = defaultArg buildConfig "Release"
let rootPath = dependencies.FileName |> Path.GetDirectoryName
let packageOutputPath = if Path.IsPathRooted(packageOutputPath) then packageOutputPath else Path.Combine(rootPath,packageOutputPath)
Utils.createDir packageOutputPath |> returnOrFail

let version = version |> Option.map SemVer.Parse

Expand Down

0 comments on commit 4260123

Please sign in to comment.