Skip to content

Fix nested local dependencies (#3368)#4320

Closed
lucasvieirasilva wants to merge 1 commit into
python-poetry:masterfrom
lucasvieirasilva:issue-3368
Closed

Fix nested local dependencies (#3368)#4320
lucasvieirasilva wants to merge 1 commit into
python-poetry:masterfrom
lucasvieirasilva:issue-3368

Conversation

@lucasvieirasilva
Copy link
Copy Markdown

This PR resolves the issue when the project has more than 2 levels of path dependencies.

/lib
    /pkg1
        pyproject.toml
    /pkg2
        pyproject.toml
/apps
    /app1
        pyproject.toml

Solution

Check when the source package is directory to use the property source_url as root_dir instead of using the self._lock.path.parent if the source package is not a directory type the installation process continues normally.

That makes poetry-core resolve correctly the full path property.

Pull Request Check List

Resolves: #3368

  • Added tests for changed code.
  • Updated documentation for changed code.

@lucasvieirasilva
Copy link
Copy Markdown
Author

Duplicated fix #4246

@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Poetry install fails for nested local dependencies and develop = false

1 participant