From b5e17f7c837ce796e1094c8033fa7084510402fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 9 Oct 2018 11:09:00 +0200 Subject: [PATCH] Add GOPATH Hugo building tip --- .gitignore | 3 +++ CONTRIBUTING.md | 2 ++ go.mod | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 032a643c..568492d8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ dock.sh GoBuilds dist + + +vendor \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a0460548..7fac4dc8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -113,6 +113,8 @@ cd hugo go install ``` +>Note: Some Go tools may not be fully updated to support Go Modules yet. One example would be LiteIDE. Follow [this workaround](https://github.com/visualfc/liteide/issues/986#issuecomment-428117702) for how to continue to work with Hugo below `GOPATH`. + For some convenient build and test targets, you also will want to install Mage: ```bash diff --git a/go.mod b/go.mod index 62f22531..36fdf260 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,7 @@ require ( github.com/wellington/go-libsass v0.0.0-20180624165032-615eaa47ef79 // indirect github.com/yosssi/ace v0.0.5 golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81 - golang.org/x/net v0.0.0-20180906233101-161cd47e91fd + golang.org/x/net v0.0.0-20180906233101-161cd47e91fd // indirect golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f golang.org/x/text v0.3.0 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect -- 2.30.2