Skip to content

GHA backend: support --submodules #503

@RyanGlScott

Description

@RyanGlScott

As nice as source-repository-packages are, there are some situations where supporting git submodules would also be nice. haskell-ci has a --submodules flag for this purpose, but at the moment the GitHub Actions backend does not support it. At first, I thought supporting this flag would be as simple as adding submodules: true to the checkout@v2 action, but when I tried this, I got this error:

The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH
Error: Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git 2.18 or higher to the PATH.

Darn. It looks like we might have to resort to a manual git submodule update --init to do this.

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