Package Details: k6 0.27.0-1

Git Clone URL: https://aur.archlinux.org/k6.git (read-only, click to copy)
Package Base: k6
Description: A modern load testing tool, using Go and JavaScript
Upstream URL: https://github.com/loadimpact/k6
Licenses: AGPL3
Submitter: billkaguru
Maintainer: thirk_voluntary
Last Packager: thirk_voluntary
Votes: 5
Popularity: 0.26
First Submitted: 2018-06-07 18:06
Last Updated: 2020-07-31 04:05

Required by (0)

Sources (0)

Latest Comments

teutat3s commented on 2020-09-24 12:32

Diff for update to 0.28.0

diff --git a/PKGBUILD b/PKGBUILD
index 3d5362e..14e4014 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Andy Nicholson <andrew@anicholson.net>

 pkgname=k6
-pkgver=0.27.0
+pkgver=0.28.0
 pkgrel=1
 pkgdesc="A modern load testing tool, using Go and JavaScript"
 arch=('x86_64' 'i686')
@@ -13,25 +13,27 @@ options=('!strip' '!emptydirs')
 _gourl=github.com/loadimpact/k6

 build() {
-  GOPATH="$srcdir" go get -v -x ${_gourl}/...
-  GOPATH="$srcdir" go get -fix -v -x ${_gourl}/...
+  go get -d ${_gourl}
+  cd $GOPATH/src/${_gourl}
+  git checkout v$pkgver
+  export GOFLAGS="-trimpath"
+  export CGO_ENABLED=0
+  go build -v -o $GOPATH/bin/
 }

thirk_voluntary commented on 2020-03-02 02:23

@billkaguru the fix turns out to be pretty simple:

diff --git a/.SRCINFO b/.SRCINFO
index ca00543..9341112 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = k6
    pkgdesc = A modern load testing tool, using Go and JavaScript
-   pkgver = 0.21.1
+   pkgver = 0.26.0
    pkgrel = 1
    url = https://github.com/loadimpact/k6
    arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 7930dd5..84e0d3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Bill Kaguru Wanjohi <bill@ka.guru>

 pkgname=k6
-pkgver=0.21.1
+pkgver=0.26.0
 pkgrel=1
 pkgdesc="A modern load testing tool, using Go and JavaScript"
 arch=('x86_64' 'i686')
@@ -13,6 +13,7 @@ options=('!strip' '!emptydirs')
 _gourl=github.com/loadimpact/k6

 build() {
+  GOPATH="$srcdir" go get -v -x ${_gourl}/...
   GOPATH="$srcdir" go get -fix -v -x ${_gourl}/...
 }

^ this issues two commands to go get -- because it's already downloaded all the deps it doesn't have to do any network stuff the second time around.

I also bumped the version to latest (0.26.0)

Cheers!

Andy>

a216 commented on 2018-12-05 13:33

Fails for me too, virtually the exact same error as @pyriand3r. I wish I knew more about Golang's building process :/

pyriand3r commented on 2018-11-19 14:09

For me too, here's the log output of the fail. Important is, that you do not close the install process but answers the retry with yes to stay in the same process.
Seems to have problems fetching the git submodules on first run:

==> Starting build()...
github.com/loadimpact/k6 (download)
cd .
git clone https://github.com/loadimpact/k6 /tmp/yaourt-tmp-gabriel/aur-k6/src/src/github.com/loadimpact/k6
cd /tmp/yaourt-tmp-gabriel/aur-k6/src/src/github.com/loadimpact/k6 git submodule update --init --recursive
cd /tmp/yaourt-tmp-gabriel/aur-k6/src/src/github.com/loadimpact/k6 git show-ref
cd /tmp/yaourt-tmp-gabriel/aur-k6/src/src/github.com/loadimpact/k6 git submodule update --init --recursive
/usr/lib/go/pkg/tool/linux_amd64/fix src/github.com/loadimpact/k6/main.go package github.com/loadimpact/k6/...: cannot find package "github.com/loadimpact/k6/..." in any of:
/usr/lib/go/src/github.com/loadimpact/k6/... (from $GOROOT)
/tmp/yaourt-tmp-gabriel/aur-k6/src/src/github.com/loadimpact/k6/... (from $GOPATH)
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build k6.

billkaguru commented on 2018-06-07 21:09

For reasons I don't understand, this failed the first time but succeeds with another run.