Skip to content

Lower case group folder name - #2150

Merged
forki merged 1 commit into
fsprojects:masterfrom
JonCanning:patch-1
Feb 23, 2017
Merged

forki merged 1 commit into
fsprojects:masterfrom
JonCanning:patch-1

Conversation

@JonCanning

Copy link
Copy Markdown
Contributor

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

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
@smoothdeveloper

Copy link
Copy Markdown
Contributor

@JonCanning thanks for the report, could you give a paket.dependencies that you are looking at and a summary of folder names where they mismatch (wether in file structure or in the generated script clauses)?

Thanks!

@smoothdeveloper

Copy link
Copy Markdown
Contributor

Mhh this is a PR already 😄 yes lowercasing the group name seems correct, we probably need same fix in core3 branch:

let groupFolder = if groupName = Constants.MainDependencyGroup then "" else "/" + groupName.ToString()

If you can consider adding a test that would be nice.

| 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()

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.

the groupd should have a compare name - I will use that one.
ANd thanks for fixing!

@forki
forki merged commit 2132e51 into fsprojects:master Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants