fix(nx-python): resolve poetry export local path for windows #244
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current Behavior
Currently, when the projects has a local dependency and the build executor is called in a Windows machine the following error happen:
That happens because the
@nxlv/python
plugin uses the output of thepoetry export
command, and the pattern for Mac/Linux is:-e file:///Users/...
and for Windows is-e file:///C:/Users/
.The resolved location for Mac/Linux is
/Users/...
and/C:/Users/
for Windows.Expected Behavior
The resolved location should stay as-is for Mac/Linux and change from
/C:/Users/
toC:/Users/
for Windows.