summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Whited2019-07-02 14:08:55 -0500
committerSam Whited2019-07-02 14:08:55 -0500
commit78bc5626ac0b9a6c1a8e89dbe4603c4da6313ecf (patch)
treec6fc215b43f5a6755f4b87386fef1af5155b3f93
parente6e212503baa083b08b9684ae62c47c9a18d327c (diff)
downloadaur-78bc5626ac0b9a6c1a8e89dbe4603c4da6313ecf.tar.gz
Add gopls.service and use existing go.mod
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD10
-rw-r--r--gopls.service10
3 files changed, 18 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e6971a71aaf..79f353e84b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = go-tools-git
pkgdesc = Developer tools for the Go programming language
- pkgver = v0.0.0_20190121143147_24cd39ecf745
- pkgrel = 2
+ pkgver = v0.0.0_20190702152245_7e72c71c505f
+ pkgrel = 1
url = https://godoc.org/golang.org/x/tools/
arch = x86_64
license = BSD
@@ -13,8 +13,10 @@ pkgbase = go-tools-git
conflicts = go-tools-complete-git
conflicts = go-imports-git
source = go-tools-git::git+https://go.googlesource.com/tools
+ source = gopls.service
source = godoc.service
sha256sums = SKIP
+ sha256sums = fea23332ef69ba647cde588071bce7d424b400181bd97428f8fdb9c48a82089d
sha256sums = 0afd3dcbf1758b33f6810cc81fc7eb37095db48bc8055ddd6b714c46184a490e
pkgname = go-tools-git
diff --git a/PKGBUILD b/PKGBUILD
index 1c802d56c3e..abdfa749ef2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor: Egor Kovetskiy <e.kovetskiy@office.ngs.ru>
pkgname=go-tools-git
-pkgver=v0.0.0_20190121143147_24cd39ecf745
-pkgrel=2
+pkgver=v0.0.0_20190702152245_7e72c71c505f
+pkgrel=1
pkgdesc='Developer tools for the Go programming language'
arch=(x86_64)
url='https://godoc.org/golang.org/x/tools/'
@@ -16,8 +16,10 @@ conflicts=('go-tools'
'go-imports-git')
provides=('go-tools')
source=("${pkgname}::git+https://go.googlesource.com/tools"
+ 'gopls.service'
'godoc.service')
sha256sums=('SKIP'
+ 'fea23332ef69ba647cde588071bce7d424b400181bd97428f8fdb9c48a82089d'
'0afd3dcbf1758b33f6810cc81fc7eb37095db48bc8055ddd6b714c46184a490e')
pkgver() {
@@ -33,10 +35,6 @@ prepare() {
rm -rf build/
mkdir -p build/
mkdir -p cache/
-
- cd "${pkgname}"
- rm -f go.mod
- go mod init golang.org/x/tools
}
build() {
diff --git a/gopls.service b/gopls.service
new file mode 100644
index 00000000000..0ad49201ea4
--- /dev/null
+++ b/gopls.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Language Server Protocol implementation for Go
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/gopls
+
+[Install]
+WantedBy=multi-user.target