mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
ec5d34dac0
Signed-off-by: hishope <csqiye@126.com>
767 B
767 B
Set Up Kubernetes Repos
- make sure the $HOME/go/src/github.com/kubernetes directory exists
- clear out (remove) kubernetes repo if is already there (just makes things smoother with a new clone)
- clone kubernetes/kubernetes repo into that directory as "upstream"
- add k3s-io/kubernetes repo as "k3s-io"
- fetch all objects from both repos into your local copy
- it is important to follow these steps because Go is very particular about the file structure (it uses the file structure to infer the urls it will pull dependencies from)
- this is why it is important that the repo is in the github.com/kubernetes directory, and that the repo's directory is "kubernetes" matching the upstream copy's name
$HOME/go/src/github.com/kubernetes/kubernetes