fix: Wrong executable path on WSL - #89
Conversation
|
Can you please add a test for this so we don't regress (again)? |
@malept I'd like to, but it confused me a lot, that how to mock a WSL environment, and how to know Is this acceptable if this test can only be run in WSL? |
|
Seems like you'd have to mock out both the |
|
Also it seems that there is no CI being run for this PR 😞 |
Yeah... It seems that such case is not testable... |
I fixed CI if you push another commit with the mocks I suggested. |
|
🎉 This PR is included in version 4.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The path of executable file to be modified is not parsed properly on WSL, without
normalizePath, it will try to modify the path inside WSL, which is not recognized properly, this PR fixed the problem.Please notice the first argument:
This is incorrect ;)