From 04ae4d85b444aa9fed7f1e5a0b746cb6103439fe Mon Sep 17 00:00:00 2001 From: kaffarell Date: Fri, 28 Oct 2022 20:05:15 +0200 Subject: [PATCH] docs: changed from 'go install' to 'go get' in contributing.md 'go install' is not really the correct command. It does not add the package to the go.mod file when a specific version is used. The correct command is 'go get'. See here: https://go.dev/ref/mod#go-install Signed-off-by: kaffarell --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 844f8e09f..16fc40712 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,10 +64,10 @@ To add or update a new dependency, use the `go get` command: ```bash # Pick the latest tagged release. -go install example.com/some/module/pkg@latest +go get example.com/some/module/pkg@latest # Pick a specific version. -go install example.com/some/module/pkg@vX.Y.Z +go get example.com/some/module/pkg@vX.Y.Z ``` Tidy up the `go.mod` and `go.sum` files: