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

⚠️ Repo layout will change soon as this repository is becoming too large for github 🙄 #13

Closed
tintinweb opened this issue Jan 29, 2022 · 6 comments

Comments

@tintinweb
Copy link
Owner

tintinweb commented Jan 29, 2022

Main Repo: https://github.com/tintinweb/smart-contract-sanctuary

And one sub-repo per chain (e.g.): https://github.com/tintinweb/smart-contract-sanctuary-tron

All repositories are going to be linked to the main repo as git submodules

How to check out?

git clone --recursive https://github.com/tintinweb/smart-contract-sanctuary.git

@tintinweb
Copy link
Owner Author

sneak peek:

  • main repo with linked git submodules for all chains:

image

  • submodule structure (similar for all chains)

image

@htadashi
Copy link

htadashi commented Feb 2, 2022

@tintinweb thanks for the hard work! 💪🏻
It is a very nice resource for exploring how developers are (and were) writing code, and I think that tools such as Github Copilot will benefit more and more from your repos :)

@tintinweb
Copy link
Owner Author

@htadashi haha, not sure if that's a good thing :D

PS: we're already syncing to the new repo structure and will make it available soon. just need another pair of eyes to verify that the structure works for most people 🙌

@tintinweb tintinweb changed the title ⚠️ This repository is becoming too large and is therefore going to be restructured! ⚠️ Repo layout will change soon as this repository is becoming too large. Feb 2, 2022
@tintinweb tintinweb changed the title ⚠️ Repo layout will change soon as this repository is becoming too large. ⚠️ Repo layout will change soon as this repository is becoming too large for github 🙄 Feb 2, 2022
@tintinweb
Copy link
Owner Author

@tintinweb
Copy link
Owner Author

migration:

updating to v2 removes all smart contracts from the main repo's index and added one git submodule per chain. Check out the readme for information on how to use git submodules.

First time - clone the index and checkout all chain-specific sub repositories from scratch:

⇒  git clone --recursive --depth=1 [email protected]:tintinweb/smart-contract-sanctuary.git

also see https://git-scm.com/docs/git-submodule for more options

Existing repository but submodules never initialized (migration from old layout to new v2) - checkout submodules and update all chain-specific sub repositories:

⇒  git submodule update --init --remote --depth=1 --progress

Existing repository with submodules - update all chain-specific sub repositories to the submodules tips (latest remote commit - this is what you want to run on a regular basis once the main repo has been checked out):

⇒  git submodule update --remote --progress

@tintinweb
Copy link
Owner Author

live 🚀

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