Add key to allow fetching submodules for git repos
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
Issue
Currently, git dependencies do not fetch submodules. This makes dependencies like mypy
unusable when installing it from git. I don’t think fetching submodules should be the default behavior, but it would be nice if git dependencies had the option to fetch them. For instance:
[tool.poetry.dependencies]
# Submodules would not be fetched for sqlalchemy-stubs
sqlalchemy-stubs = {rev = "8b45fc4345778e3f08e8a3b53ff71aaaa775e632", git = "https://github.com/dropbox/sqlalchemy-stubs.git"}
[tool.poetry.dev-dependencies]
# Submodules would be fetched for mypy because of submodules = true
mypy = {rev = "47c25263694bae2a577c15d70d2988db2e8e8584", git = "https://github.com/python/mypy.git", submodules = true}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Git - Submodules - Git SCM
Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your...
Read more >How to Utilize Submodules within Git Repos - Bits and Pieces
Git addresses this issue using submodules. Submodules allow you to keep a Git repository as a subdirectory of another Git repository.
Read more >Using submodules in Git - Tutorial - Vogella.com
Git allows you to include other Git repositories called submodules into a repository. This allows you to track changes in several repositories via...
Read more >How To Add and Update Git Submodules - devconnected
The first thing you want to do is to add a Git submodule to your main project. In order to add a Git...
Read more >Using Git submodules with GitLab CI/CD
Use Git submodules in CI/CD jobs · You can set the GIT_SUBMODULE_STRATEGY variable to either normal or recursive to tell the runner to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe Poetry should just always pull submodules for Git dependencies. This would avoid introducing yet another option which would complicate things in the codebase and pulling submodules should not have any side effect that I can think of.
is there any progress on this? I am also having this problem 😦