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

Checkout public submodules from gitlab (or others) #1490

Open
ganondev opened this issue Sep 20, 2023 · 1 comment
Open

Checkout public submodules from gitlab (or others) #1490

ganondev opened this issue Sep 20, 2023 · 1 comment

Comments

@ganondev
Copy link

ganondev commented Sep 20, 2023

My repository (https://github.com/ganondev/libant) depends on https://gitlab.com/libeigen/eigen as a submodule.
I thought to recurse submodules as part of the checkout:

    steps:
      - uses: actions/checkout@v3
        with:
          submodules: recursive

But I get this:

  Submodule 'submodules/eigen' (git@gitlab.com:libeigen/eigen.git) registered for path 'submodules/eigen'
  Cloning into 'D:/a/libant/libant/submodules/eigen'...
  Host key verification failed.

Given that this is a public repository, and GitLab isn't exactly an obscure service, I feel like this ought to work out of the box. I didn't have any luck trying to add gitlab's key to ssh-known-hosts, so I'm not sure what to do.

@HinTak
Copy link

HinTak commented May 9, 2024

Your https seems to have been turned into git@gitlab.com:libeigen/eigen.git internally.

I have a possibly related but different problem - mine refers to
git://git.sv.nongnu.org/freetype/freetype2.git` . It seems that it works only if the submodule refers to the head of upstream. When upstream freetype2 moves forward, github CI cannot fetch the older commit.

I'll file separately now.

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

No branches or pull requests

3 participants
@HinTak @ganondev and others