aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2022-01-03 15:11:06 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-01-04 07:52:05 +0700
commitd930888d34a769a3a00b460d4e87da814474ca1a (patch)
tree51983f2a7b63dbe7bcf9ba4fcdf11435df0f7f98 /development
parent1b966b17dd8dd51140775d13056efb6b873d5171 (diff)
development/golang-googlecode-gotools: fix build of go.tools
This is a bandaid, since the package is so old. To update it would be a rework of this SlackBuild. So, added some instructions for users that care to install a newer version for themselves. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/golang-googlecode-gotools/README13
-rw-r--r--development/golang-googlecode-gotools/golang-googlecode-gotools.SlackBuild1
2 files changed, 14 insertions, 0 deletions
diff --git a/development/golang-googlecode-gotools/README b/development/golang-googlecode-gotools/README
index 555d3340ecaf8..d7b91470036a1 100644
--- a/development/golang-googlecode-gotools/README
+++ b/development/golang-googlecode-gotools/README
@@ -6,3 +6,16 @@ language. Like godoc, a code vetting analysis utility and others.
This also provides the import path of code.google.com/p/go.tools for
the Go programming language. These libraries are source only. To
compile using the libraries, include "/usr/share/gocode" in your GOPATH
+
+This package currently builds a historic version of tools from when they were
+removed from the core golang repo.
+
+Users may wish to install updated commands, like:
+```
+go get -u golang.org/x/tools/godoc
+```
+
+or in future golang versions (>= go1.17):
+```
+go install golang.org/x/tools/gopls@latest
+```
diff --git a/development/golang-googlecode-gotools/golang-googlecode-gotools.SlackBuild b/development/golang-googlecode-gotools/golang-googlecode-gotools.SlackBuild
index 805a9ed1e80b6..e2459704f4da5 100644
--- a/development/golang-googlecode-gotools/golang-googlecode-gotools.SlackBuild
+++ b/development/golang-googlecode-gotools/golang-googlecode-gotools.SlackBuild
@@ -90,6 +90,7 @@ cp -a . ${PKG}/usr/share/gocode/src/${IMPORT_PATH}
export GOPATH=${PKG}/usr/share/gocode:/usr/share/gocode
export GOBIN=${PKG}/usr/bin
+export GO111MODULE="off"
for cmd in godoc cover vet oracle gotype html2article ; do
cd ./cmd/${cmd}/
go build -a -x -o ${GOBIN}/${cmd} .