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

Allow absolute paths in the --directory option #31

Merged
merged 4 commits into from
Dec 3, 2020

Conversation

imjoehaines
Copy link
Member

Goal

The intention of --directory was to be a path to a directory within the project root, but this is a bit unclear. Using an absolute path doesn't work because the directory and project root are concatenated, which will never result in a valid path

This now uses path.resolve to ensure that an absolute --directory will be used as-is

The request unit tests were flaking on CI (example) so I increased the timeout from 100ms to 250ms

Testing

Unit tested by duplicating the relative path --directory tests but switching them to absolute paths and added MR tests

@imjoehaines imjoehaines merged commit 88007cc into next Dec 3, 2020
@bengourley bengourley deleted the allow-absolute-path-directory branch December 3, 2020 13:39
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.

None yet

2 participants