Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Why use go get to prepare cache. #75

Open
rcio opened this issue Feb 14, 2017 · 0 comments
Open

Why use go get to prepare cache. #75

rcio opened this issue Feb 14, 2017 · 0 comments

Comments

@rcio
Copy link

rcio commented Feb 14, 2017

I use trash to manage vendor packages from a local forked repo, instead of original one on github or golang.org, consider by more faster git clone speed.

But it still do a slow clone when no trash cache at all, so I looked into then source code, found when trash do a "cache perparing", first it use go get -d -f -u command and the original package name(aka the original repo address) to initial a cache dir. Then add 'Repo' config as a remote, use this remote to fetch or update.

So my question is: why use go get? why not just git init and remote add and fetch?

Since I delete the go get code lines, still get a change to check a if current cache dir is already a git repo, if not, a go init will be executed.

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

No branches or pull requests

1 participant