Repository navigation
Lower case group folder name - #2150
Merged
Merged
Conversation
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
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! |
Contributor
|
Mhh this is a PR already 😄 yes lowercasing the group name seems correct, we probably need same fix in core3 branch: Paket/src/Paket.Core/PublicAPI.fs Line 425 in 39468c9 If you can consider adding a test that would be nice. |
forki
reviewed
Feb 23, 2017
| | 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() |
Member
There was a problem hiding this comment.
the groupd should have a compare name - I will use that one.
ANd thanks for fixing!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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