Skip to content

fix: Pass in source_subdirectory to get_package_from_vcs#5533

Closed
rht wants to merge 1 commit into
python-poetry:masterfrom
rht:master
Closed

fix: Pass in source_subdirectory to get_package_from_vcs#5533
rht wants to merge 1 commit into
python-poetry:masterfrom
rht:master

Conversation

@rht

@rht rht commented May 3, 2022

Copy link
Copy Markdown

Fixes #5521.
With this commit, one can finally add a Git dependency with a
subdirectory, e.g.

talon-core = {git = "https://github.com/zulip/talon.git", rev = "1711705c952806d4a704c7dbf58f21db8e11756a", subdirectory = "talon-core" }

Pull Request Check List

Resolves: #issue-number-here

  • Added tests for changed code.
  • Updated documentation for changed code. N/A because the subdirectory is not yet documented

Fixes python-poetry#5521.
With this commit, one can finally add a Git dependency with a
subdirectory, e.g.

```
talon-core = {git = "https://github.com/zulip/talon.git", rev = "1711705c952806d4a704c7dbf58f21db8e11756a", subdirectory = "talon-core" }
```
@rht

rht commented May 4, 2022

Copy link
Copy Markdown
Author

cc @sdispater

@rht

rht commented May 10, 2022

Copy link
Copy Markdown
Author

Note: while with this patch, the command poetry lock works, and it checks out the Git subdirectory, it still does not write the metadata to poetry.lock. And so, this PR still does not resolve the problem.

@andersk

andersk commented May 18, 2022

Copy link
Copy Markdown
Contributor

If I understand correctly, this is addressed more completely by #5172.

@andersk

andersk commented May 21, 2022

Copy link
Copy Markdown
Contributor

A patch equivalent to this one was merged today as part of #5648 (although #5172 still has further fixes that are still needed).

@neersighted

Copy link
Copy Markdown
Member

Closing this due to a lack of tests and equivalent/tested work in #5172

@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 add of a GitHub repo with subdirectory fails

3 participants