Skip to content

Respect root dir/common src dir when generating module names#5881

Merged
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:rootdir-module-names
Dec 2, 2015
Merged

Respect root dir/common src dir when generating module names#5881
weswigham merged 2 commits into
microsoft:masterfrom
weswigham:rootdir-module-names

Conversation

@weswigham
Copy link
Copy Markdown
Member

Fixes #5819.

The root of the issue was that we weren't combining/separating paths correctly when joining/splitting the common source directory with the filename to generate the module name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not change... the file name specified is "inputFile3"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is as a result of the canonicalization now performed on the file name in order to get the whole path (and then trim off the common part).

I suppose I could rework the comparison so not canonicalize and split, but instead compare canonicalized components and join, in order to preserve input casing on case insensitive systems.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 2, 2015

👍 thanks!

weswigham added a commit that referenced this pull request Dec 2, 2015
Respect root dir/common src dir when generating module names
@weswigham weswigham merged commit 90391fe into microsoft:master Dec 2, 2015
@weswigham weswigham deleted the rootdir-module-names branch October 12, 2017 08:05
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants