From 82cbc46fa7b8217c869b467ea310b24f33dc0605 Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Sun, 1 Jan 2023 15:49:08 -0800 Subject: [PATCH 1/2] Update from-source installation instructions --- README.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.adoc b/README.adoc index 3011ac9..4b932f7 100644 --- a/README.adoc +++ b/README.adoc @@ -160,6 +160,15 @@ Assuming you've installed `libmagic` properly and you have https://golang.org/doc/install[setup a Go environment], Use the following command to install Pistol to `$GOPATH/bin/pistol`: +==== Go 1.17 or later + +[source,sh] +---- +go install github.com/doronbehar/pistol/cmd/pistol@latest +---- + +==== Go 1.16 or earlier + [source,sh] ---- env CGO_ENABLED=1 GO111MODULE=on go get -u github.com/doronbehar/pistol/cmd/pistol From 02ce0721806487af08505a8c7b5f0dfb399500c5 Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Mon, 2 Jan 2023 15:42:56 -0800 Subject: [PATCH 2/2] Double-check Go versions in README --- README.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index 4b932f7..00fa5b1 100644 --- a/README.adoc +++ b/README.adoc @@ -160,14 +160,14 @@ Assuming you've installed `libmagic` properly and you have https://golang.org/doc/install[setup a Go environment], Use the following command to install Pistol to `$GOPATH/bin/pistol`: -==== Go 1.17 or later +==== Go 1.16 or later [source,sh] ---- go install github.com/doronbehar/pistol/cmd/pistol@latest ---- -==== Go 1.16 or earlier +==== Go 1.15 or earlier [source,sh] ----