From 7763fcde1929e760481fc55c596245343e8f942a Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Mon, 7 Oct 2019 08:32:09 -0700 Subject: [PATCH 1/2] docs: Update CLI installation instructions. Fixes #243. The default behaviour for `go get` has changed slightly and we now need to either provide a module context or disable modules for installation to work correctly. Also remove a now-obsolete reference to the source{d} engine CLI. Signed-off-by: M. J. Fromberger --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 016a89d..01f6c2d 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,9 @@ The recommended way to install the `enry` command-line tool is to either [download a release](https://github.com/src-d/enry/releases) or run: ``` -(cd /tmp; go get github.com/src-d/enry/v2/cmd/enry) +(cd "$(mktemp -d)"; go mod init enry; go get github.com/src-d/enry/v2/cmd/enry) ``` -This project is now part of [source{d} Engine](https://sourced.tech/engine), -which provides the simplest way to get started with a single command. -Visit [sourced.tech/engine](https://sourced.tech/engine) for more information. - - Examples -------- From bf29b9a924883aa063370d85b79be53c826dbd05 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Mon, 7 Oct 2019 09:39:07 -0700 Subject: [PATCH 2/2] Use conditional composition instead of sequential. Signed-off-by: M. J. Fromberger --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01f6c2d..f387142 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The recommended way to install the `enry` command-line tool is to either [download a release](https://github.com/src-d/enry/releases) or run: ``` -(cd "$(mktemp -d)"; go mod init enry; go get github.com/src-d/enry/v2/cmd/enry) +(cd "$(mktemp -d)" && go mod init enry && go get github.com/src-d/enry/v2/cmd/enry) ``` Examples