Problem
When using git submodules within a repository connected to a Terraform Cloud workspace and have enabled the workspace setting "Include submodules on clone" it is possible to get this error message
Failed to ingress slug: Failed to clone: failed to clone repo: entry not found
Cause
This can be caused by an inconsistency between what is described as the path of the submodule in the .gitmodules file in the repository and what the actual submodule path is.
Solution
Open the .gitmodules file and edit the path attribute of the submodule to be exactly the same as the name of the submodule visible in the repository.
.gitmodules
[submodule "example"] path = example url = git@github.com/<org_name>/<repo_name>
Additional Information
If you are unable to resolve the issue please contact support at tf-cloud@hashicorp.support or submit a ticket via our support portal.