Skip to content

Commit

Permalink
paket add should not change dependencies file if the package is missp…
Browse files Browse the repository at this point in the history
…elled - fixes #798
  • Loading branch information
forki committed Apr 24, 2015
1 parent 5dd9ac1 commit 654c7da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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.1.2 - 24.04.2015
* `paket add` should not change dependencies file if the package is misspelled - https://github.com/fsprojects/Paket/issues/798

#### 1.1.1 - 24.04.2015
* Support developmentDependency nuget dependencies - https://github.com/fsprojects/Paket/issues/796

Expand Down
6 changes: 3 additions & 3 deletions src/Paket.Core/AddProcess.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ let private add addToProjects dependenciesFileName package version force hard in
let dependenciesFile =
existingDependenciesFile
.Add(package,version)

dependenciesFile.Save()


let lockFile = UpdateProcess.SelectiveUpdate(dependenciesFile,Some(NormalizedPackageName package),force)
let projects = seq { for p in ProjectFile.FindAllProjects(Path.GetDirectoryName lockFile.FileName) -> p } // lazy sequence in case no project install required

dependenciesFile.Save()

package |> addToProjects projects

Expand Down
4 changes: 2 additions & 2 deletions src/Paket/Paket.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
<StartProgram>paket.exe</StartProgram>
<StartWorkingDirectory>D:\code\Pakettest</StartWorkingDirectory>
<StartWorkingDirectory>D:\code\Paketkopie</StartWorkingDirectory>
<StartArguments>pack output "temp" version 1.0.0.0 releaseNotes "Initial release"</StartArguments>
<StartArguments>add nuget fake</StartArguments>
<StartAction>Project</StartAction>
<StartProgram>paket.exe</StartProgram>
<StartWorkingDirectory>D:\code\FSharp.Core.Fluent</StartWorkingDirectory>
<StartWorkingDirectory>D:\code\Pakettest</StartWorkingDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down

0 comments on commit 654c7da

Please sign in to comment.