djcas9 / komanda-cli

Komanda CLI Client
BSD 3-Clause "New" or "Revised" License
161 stars 5 forks source link

Switch from dep to go mod #11

Closed ks2211 closed 5 years ago

ks2211 commented 5 years ago

Switch from dep to go mod

Steps:

  1. Update to go 1.13

  2. Clone the repo

  3. Run go mod init github.com/mephux/komanda-cli to initalize the modules

  4. Run go mod tidy to tidy

  5. Run go mod vendor to fetch vendor deps (these don't need to be committed any more unless you don't have a way to fetch these deps)

  6. Run make build to build

make tidy-mods to run go mod tidy and make vendor-mods to run go mod vendor

Some quick tldr readings--

https://systemdump.io/posts/2018-07-22-go-modules

https://www.kablamo.com.au/blog/2018/12/10/just-tell-me-how-to-use-go-modules