From 920c93965786fde516043fac3bbcd998ff08b16a Mon Sep 17 00:00:00 2001 From: zrthstr <1923548+zrthstr@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:40:25 +0200 Subject: [PATCH] Update README.md Update install method as go get -u is outdated and not working anymore. `go get -u repuURL` will no longer work. See error message below. `go install repoURL@version` works.. Old error: ``` % go get -u github.com/visma-prodsec/confused go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'. ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e749b6..8c98858 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ trusted party has claimed the scope name in the public repositories. - [Download](https://github.com/visma-prodsec/confused/releases/latest) a prebuilt binary from [releases page](https://github.com/visma-prodsec/confused/releases/latest), unpack and run! _or_ -- If you have recent go compiler installed: `go get -u github.com/visma-prodsec/confused` (the same command works for updating) +- If you have recent go compiler installed: `go install github.com/visma-prodsec/confused@latest` (the same command works for updating) _or_ - git clone https://github.com/visma-prodsec/confused ; cd confused ; go get ; go build