Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle relative paths via originating path #6

Open
aspiers opened this issue Dec 13, 2017 · 0 comments
Open

handle relative paths via originating path #6

aspiers opened this issue Dec 13, 2017 · 0 comments

Comments

@aspiers
Copy link
Owner

aspiers commented Dec 13, 2017

938a490 added tracking of originating file pathnames for each component. References (such as includes) from one component to another, such as ../../../roles/myrole/tasks/mytask.yml are currently handled via quite specific regexps, whereas we could just calculate the full path, clean it up via Pathname.cleanpath, and perform a reverse lookup (doesn't exist currently) to find the object. This would allow even crazy stuff like ../../../roles/myrole1/../myrole2 to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant