Skip to content

recursive submodules are not cloned #251

@baszalmstra

Description

@baszalmstra

I just upgraded from Concourse v4.2.2 to v5.0.1. Since this update recursive submodules are no longer cloned. Submodules themselves are checked out just fine but their submodules are not cloned.

One example is breakpad which has a recursive submodules required to build the project. In version v4.2.2 the output would yield something like:

Submodule 'external/breakpad/source' (<redacted>) registered for path 'external/breakpad/source'
Cloning into '/tmp/build/get/external/breakpad/source'...
Submodule path 'external/breakpad/source': checked out 'a78ee23927cb3a5d4040e75c2b8a37c2f1c6be39'	
Submodule 'src/third_party/lss' (<redacted>) registered for path 'external/breakpad/source/src/third_party/lss'
Cloning into '/tmp/build/get/external/breakpad/source/src/third_party/lss'...
Submodule path 'external/breakpad/source/src/third_party/lss': checked out 'e6527b0cd469e3ff5764785dadcb39bf7d787154'

Version v5.0.1 outputs:

Submodule 'external/breakpad/source' (<redacted>) registered for path 'external/breakpad/source'
Cloning into '/tmp/build/get/external/breakpad/source'...
Submodule path 'external/breakpad/source': checked out 'a78ee23927cb3a5d4040e75c2b8a37c2f1c6be39'
Entering 'external/breakpad/source'
fetch: Fetching reference HEAD
WARNING: 'git lfs checkout' is deprecated and will be removed in v3.0.0.
'git checkout' has been updated in upstream Git to have comparable speeds
to 'git lfs checkout'.

Nothing related to the recursive lss submodule.

I've not specified any submodule parameters in the config:

- name: source
  type: git
  source:
    branch: ((branch))
    uri: <redacted>
    private_key: {{gitlab-private-key}}
    ignore_paths: 
    - ci/pipelines/**
    - images/**

And also none in the get step:

- get: source

Explicitly adding submodule_recursive doesn't change anything:

- get: source
  params: { submodule_recursive: true }

This currently breaks a lot of my pipelines. Reading through the source did not yield any solution. Any fix or workaround would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions