Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Commit d9867d7

Browse files
committed
doc: fix godoc build
1 parent 2df9717 commit d9867d7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ NPMBIN=./node_modules/.bin
77
OUTPUTDIR=public
88
PKGDIR=content/reference/pkg
99
PORT=1313
10+
export GO111MODULE=on
1011

1112
ifeq ($(DEBUG), true)
1213
PREPEND=

scripts/pkg2md.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ case "$name" in
4444
#
4545
# TODO also render subdirectories
4646
export GOPATH="$(pwd)/tmp/gopath"
47-
clone "$repo" "$GOPATH/src/$repo" "$ref"
47+
48+
# Use go-get (without modules)
49+
GO111MODULE=off go get "$repo"
50+
git -C "$GOPATH/src/$repo" checkout "$ref"
4851

4952
mkdir -p "$basedir/$name"
5053
# Hugo can't nest pages if there's an `index.md`, so use another name

0 commit comments

Comments
 (0)