Skip to content

Commit

Permalink
README: Mention CGO_ENABLED=1 in install section
Browse files Browse the repository at this point in the history
Fixes: #76.
  • Loading branch information
doronbehar committed Nov 15, 2021
1 parent 2455625 commit 918c204
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 918c204

Please sign in to comment.