Package Details: gotags 1.4.1-3

Git Clone URL: https://aur.archlinux.org/gotags.git (read-only, click to copy)
Package Base: gotags
Description: ctags-compatible tag generator for Go
Upstream URL: https://github.com/jstemmer/gotags
Licenses: MIT
Submitter: peeweep
Maintainer: peeweep
Last Packager: peeweep
Votes: 1
Popularity: 0.000403
First Submitted: 2020-12-22 02:35 (UTC)
Last Updated: 2021-04-10 16:19 (UTC)

Latest Comments

arnottcr commented on 2021-04-08 09:09 (UTC)

This breaks with recent versions of go:

go: cannot find main module, but found .git/config in /path/to/gotags
        to create a module there, run:
        cd ../.. && go mod init

As the toolchain suggests, you need to init a module, since the author has not migrated yet:

diff --git a/PKGBUILD b/PKGBUILD
index df75d71..9ae480e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ sha256sums=('2df379527eaa7af568734bc4174febe7752eb5af1b6194da84cd098b7c873343')
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   export GOCACHE="${srcdir}/${pkgname}-${pkgver}/gocache"
+  go mod init ${url##https://}
   go build -o "${pkgname}"
 }