From 5e0767edcec132bb81b840b7226c864f028db252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ota=CC=81vio=20Fernandes?= Date: Mon, 28 Oct 2019 11:02:11 +0100 Subject: [PATCH] chore(docs): Go Modules usage on `CONTRIBUTING.md`. --- CONTRIBUTING.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ed7d96901..1ad3c7458 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,17 +87,18 @@ Run the integration tests with: $ hack/test-integration.sh -## Installing Glide +## Dependency Management -S2I uses [Glide](https://github.com/Masterminds/glide) for dependency management. -Glide allows versions of dependent packages to be locked at a specific commit by *vendoring* them -(checking a copy of them into `vendor`). This means that everything you need for -S2I is checked into this repository. To install `glide` locally run: +S2I uses [Go Modules](https://github.com/golang/go/wiki/Modules) for `vendor` directory +management. Please consider [`go.mod`](./go.mod) to see how dependencies are organized in this +project, and consider official documentation about +[Go Modules](https://github.com/golang/go/wiki/Modules#how-to-use-modules). - $ go get github.com/Masterminds/glide - -If you are not updating packages you should not need glide installed. +The basic usage of `go mod` in this project is: + $ go mod tidy -v + $ go mod vendor + $ go mod verify ## Building a Release