Skip to content

Commit

Permalink
(chocolateyGH-231) nupkg should be created in current directory
Browse files Browse the repository at this point in the history
When running choco pack, the resulting nupkg used to be created in the current
directory and not necessarily in the same directory as the nuspec file. The
previous behavior is preferred. Allow for the package to be created in the
current working directory instead of the nuspec directory.
  • Loading branch information
ferventcoder committed Apr 11, 2015
1 parent f21091c commit d0b2336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void pack_run(ChocolateyConfiguration config)
}

string outputFile = builder.Id + "." + builder.Version + Constants.PackageExtension;
string outputPath = _fileSystem.combine_paths(nuspecDirectory, outputFile);
string outputPath = _fileSystem.combine_paths(_fileSystem.get_current_directory(), outputFile);

this.Log().Info(() => "Attempting to build package from '{0}'.".format_with(_fileSystem.get_file_name(nuspecFilePath)));

Expand Down

0 comments on commit d0b2336

Please sign in to comment.