-
Notifications
You must be signed in to change notification settings - Fork 338
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
fix: Resolve input sourceDir to absolute path #3024
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the path normalization moved into cmd/run.js, the normalization at the arg parser level can be dropped:
Line 433 in 3063a77
coerce: (arg) => (arg != null ? path.resolve(arg) : undefined), |
Could you also add a unit test to https://github.com/mozilla/web-ext/blob/eae8d7374238254c90e8e10d0395ca24923c8c13/tests/unit/test-cmd/test.run.js ? Input a relative path and verify that sourceDir
is an absolute path.
Thanks for the review and comments, I've pushed the suggested changes. One build step is failing currently related to
I referred to some docs and downgrading to version 2.8.8 fixed the issue, but build still fails after the latest push. I'm not sure if this is due to an older version of prettier doing some additional formatting changes which were not required. Please could you suggest on this. |
Gah, that's my fault probably. We don't seem to have CI checks for prettier/pretty-quick and looks like there is some kind of incompatibilities. |
Ha. Weird, it doesn't fail for me locally. Could you please rebase your PR on top of latest |
5f01fe7
to
13af82f
Compare
Yes, pulling the latest from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
Fixes #2993.
Add a patch that turns the
run.js
sourceDir into an absolute path.