question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clone with inaccessible submodule fails the clone process (cartodb-private)

See original GitHub issue

I am running into problems while trying out the latest master branch due to the cartodb-private submodule’s inclusion.

It breaks cloning the repository and is breaking some of our CI pipelines… could someone please enlighten me as to the purpose of having a private submodule in an open source and public repository? With an open source project you shouldn’t include completely private submodules as dependencies it defeats its purpose.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Oreillescommented, May 31, 2021

In case anyone stumble into this, here’s the solution:

git clone https://github.com/cartodb/cartodb.git
cd cartodb
git rm private
git submodule update --init --recursive
2reactions
Stivens73commented, Jan 19, 2021

@sabman, you can also run it with -n flag for a shallow copy.

upd: okay, this might not be a good solution, -n as shallow copy will basically create an empty dir

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cloning Submodule Fails from Mirror - Atlassian Documentation
Problem. Cloning a repository from a mirror that contains submodules results in one of the following errors: Command: git clone --recurse- ...
Read more >
cloning submodule fails - git - Stack Overflow
Just found the answer: git submodule add http://git.drupal.org/project/token.git sites/all/modules/token. The leading "/" was the problem.
Read more >
What can I do about the error: Invalid submodules in repository?
This can be caused by a developer doing a git clone of a submodule directly inside your project, or maybe by copying a...
Read more >
Getting Dakota Source Code
After cloning you will need to turn off one inaccessible submodule: git clone software.sandia.gov:/git/dakota cd dakota git checkout devel.
Read more >
How To Pull The Latest Git Submodule | phoenixNAP KB
When a user clones a Git repository that contains submodules, ... you fix a common error that appears during the submodule update process....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found