Closed ks2211 closed 5 years ago
Switch from dep to go mod
Steps:
Update to go 1.13
Clone the repo
Run go mod init github.com/mephux/komanda-cli to initalize the modules
go mod init github.com/mephux/komanda-cli
Run go mod tidy to tidy
go mod tidy
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)
go mod vendor
Run make build to build
make build
make tidy-mods to run go mod tidy and make vendor-mods to run go mod vendor
make tidy-mods
make vendor-mods
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
Switch from dep to go mod
Steps:
Update to go 1.13
Clone the repo
Run
go mod init github.com/mephux/komanda-cli
to initalize the modulesRun
go mod tidy
to tidyRun
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)Run
make build
to buildmake tidy-mods
to rungo mod tidy
andmake vendor-mods
to rungo 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