From 918c2048b327572aaefb88a9bd8d5615007f11e8 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 15 Nov 2021 17:03:01 +0200 Subject: [PATCH] README: Mention CGO_ENABLED=1 in install section Fixes: #76. --- README.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index 93d7f4c..bb00012 100644 --- a/README.adoc +++ b/README.adoc @@ -152,12 +152,14 @@ following command to install Pistol to `$GOPATH/bin/pistol`: [source,sh] ---- -env GO111MODULE=on go get -u github.com/doronbehar/pistol/cmd/pistol +env CGO_ENABLED=1 GO111MODULE=on go get -u github.com/doronbehar/pistol/cmd/pistol ---- footnote:[`env GO111MODULE=on` is needed due to a recent bug / issue https://github.com/golang/go/issues/31529[with Go], see -https://github.com/doronbehar/pistol/issues/6[#6] for more details.] +https://github.com/doronbehar/pistol/issues/6[#6] for more details. +`CGO_ENABLED=1` is needed for https://github.com/rakyll/magicmime[magicmime], +see https://github.com/doronbehar/pistol/issues/76[#76].] Besides `libmagic`, https://repology.org/project/asciidoctor/information[`asciidoctor`] is also