Skip to content

Add key to allow fetching submodules for git repos #611

Closed

Description

@bryanforbes
  • 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}

Activity

  1. MiniXC commented on Jun 11, 2019

    @MiniXC

    I currently have the same problem with pocketsphinx, which uses submodules as well. Is there any workaround for now?

  2. dbarrosop commented on Jun 26, 2019

    @dbarrosop

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

  3. stale commented on Nov 13, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. stale commented on Nov 20, 2019

    @stale

    Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

  5. kradalby commented on Dec 18, 2019

    @kradalby

    +1 to this

  6. added
    kind/featureFeature requests/implementations
    and removed on Dec 18, 2019
  7. sdispater commented on Dec 20, 2019

    @sdispater
    Member

    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.

  8. github-actions commented on Mar 3, 2024

    @github-actions

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

  9. locked as resolved and limited conversation to collaborators on Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions