Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to clone a repo with private git submodules. #3783

Open
5 tasks done
dev-gush opened this issue Nov 2, 2023 · 1 comment
Open
5 tasks done

Unable to clone a repo with private git submodules. #3783

dev-gush opened this issue Nov 2, 2023 · 1 comment

Comments

@dev-gush
Copy link

dev-gush commented Nov 2, 2023

Before opening, please confirm:

  • I have checked to see if my question is addressed in the FAQ.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

App Id

arn:aws:amplify:us-east-1:465512941999:apps/d1zlbbwrkaj7oo

AWS Region

us-east-1

Amplify Hosting feature

Git providers

Frontend framework

React

Next.js version

13

Next.js router

App Router

Describe the bug

When my code has private git submodules, the build step fails. The error is as follows -

# Unable to update submodules: Error: Command failed: git submodule update
                                    Cloning into '/codebuild/output/src3058105818/src/<repo>/src/components/common-css-components'...
                                    Host key verification failed.
                                    fatal: Could not read from remote repository.
                                    Please make sure you have the correct access rights
                                    and the repository exists.
                                    fatal: clone of '[email protected]:org/<repo>.git' into submodule path '/codebuild/output/src3058105818/src/<repo>/src/components/common-css-components' failed
                                    Failed to clone 'src/components/common-css-components'. Retry scheduled
                                    Cloning into '/codebuild/output/src3058105818/src/<repo>/src/components/common-css-components'...
                                    Host key verification failed.
                                    fatal: Could not read from remote repository.
                                    Please make sure you have the correct access rights
                                    and the repository exists.
                                    fatal: clone of '[email protected]:org/<repo>.git' into submodule path '/codebuild/output/src3058105818/src/<repo>src/components/common-css-components' failed
                                    Failed to clone 'src/components/common-css-components' a second time, aborting

Expected behavior

It should be able to clone the sub module with the connect git app has been provided access to the git sub module repository

Reproduction steps

  1. Add a private git repo to your amplify app
  2. push to github to trigger the build job

Build Settings

No response

Log output

# Put your logs below this line


Additional information

No response

@adilusman51
Copy link

This is similar to this issue #2904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants