Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Module name must start with source root, not simply contain it #36

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

nicoschoenmaker
Copy link
Contributor

Part of #27 by @pjordaan with added test case to show the problem.

@yannickl88
Copy link
Member

what about relative modules? Like '../some/other/module'.

@pjordaan
Copy link
Contributor

this fixes the case where the source root is contained in the path, but does not start with it. The substr inside the if will truncate the wrong section of the path leading to a weird module name instead.

Copy link
Member

@yannickl88 yannickl88 left a comment

Choose a reason for hiding this comment

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

ah, that makes sense. 👍

@pjordaan pjordaan merged commit 0710434 into hostnet:master Nov 22, 2017
@nicoschoenmaker nicoschoenmaker deleted the feature/module-name branch November 22, 2017 11:04
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