Skip to content
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: Pass in source_subdirectory to get_package_from_vcs #5533

Closed
wants to merge 1 commit into from

Conversation

rht
Copy link

@rht rht commented May 3, 2022

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
Copy link
Author

rht commented May 4, 2022

cc @sdispater

@rht
Copy link
Author

rht commented May 10, 2022

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
Copy link
Contributor

andersk commented May 18, 2022

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

@andersk
Copy link
Contributor

andersk commented May 21, 2022

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
Member

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

Copy link

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