question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
sdispatercommented, Dec 20, 2019

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.

1reaction
dbarrosopcommented, Jun 26, 2019

is there any progress on this? I am also having this problem 😦

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found