Skip to content

Error checking out different submodule commits #1715

Open
@pespinel

Description

@pespinel

Misc

One workflow runs on master, the submodule points to a commit. Then the same workflow runs on another branch, the submodule points to another different commit.

We are having the following error:

Checking out the ref
  /usr/bin/git checkout --progress --force -B master refs/remotes/origin/master
  Error: fatal: failed to unpack tree object c40ead345284397b4c099ecc5b5ec9586bc9d326
  Error: error: Submodule 'acceptance/resources/users_data' could not be updated.
  Error: error: Submodule 'acceptance/resources/users_data' cannot checkout new HEAD.
  Error: The process '/usr/bin/git' failed with exit code 128

Step:

- name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: 'recursive'

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