YangCatalog / backend

YANG Catalog's REST API and internal module processing pipeline
https://yangcatalog.org
Apache License 2.0
2 stars 11 forks source link

Remove unnecessary git clones #739

Closed richardzilincikPantheon closed 1 year ago

richardzilincikPantheon commented 1 year ago

pull_local.py, openconfigPullLocal.py, ietf_push.py and iana_push.py for various reasons all trigger clones of repositories already downloaded in /var/yang/nonietf. Usually the reason is needing an up to date copy of the repository, or needing to add files to the repository without impacting other scripts. A better alternative to this would be to have one script keeping the repositories up to date (run_download_github.sh in module-compilation already does this). Any script that would need a copy of the repo that it can modify and that will not be modified by other scripts could then create it's own git worktree and delete it when it's done.