mirror of https://github.com/k3s-io/k3s
806 B
806 B
Set Up K3S Repos
- make sure the $HOME/go/src/github.com/k3s-io directory exists
- clear out (remove) k3s repo if is already there (just makes things smoother with a new clone)
- clone k3s-io/k3s repo into that directory as "upstream"
- fork that repo so that you have a private fork of it
- if you already have a fork, sync it
- add your fork repo as "origin"
- 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/k3s-io directory, and that the repo's directory is "k3s" matching the upstream copy's name
$HOME/go/src/github.com/k3s-io/k3s