Skip to content

Commit

Permalink
Lower case group folder name
Browse files Browse the repository at this point in the history
generate-include-scripts fails on Linux systems when the group name is upper case since the folder is created lower case

This causes the dir.Exists check here:
https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/NuGetV2.fs#L609
to fail
  • Loading branch information
JonCanning committed Feb 23, 2017
1 parent b005cbf commit 2132e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/PublicAPI.fs
Expand Up @@ -384,7 +384,7 @@ type Dependencies(dependenciesFileName: string) =
| None -> failwithf "Package %O is not installed in group %O." packageName groupName
| Some resolvedPackage ->
let packageName = resolvedPackage.Name
let groupFolder = if groupName = Constants.MainDependencyGroup then "" else "/" + groupName.ToString()
let groupFolder = if groupName = Constants.MainDependencyGroup then "" else "/" + groupName.ToString().ToLower()
let folder = DirectoryInfo(sprintf "%s/packages%s/%O" this.RootPath groupFolder packageName)
let nuspec = FileInfo(sprintf "%s/packages%s/%O/%O.nuspec" this.RootPath groupFolder packageName packageName)
let nuspec = Nuspec.Load nuspec.FullName
Expand Down

0 comments on commit 2132e51

Please sign in to comment.