BuildID: 3171
Status: FAIL
Image: melezhik/sparrow:archlinux
Worker status: OK
---
Date: 03.03.2023 @ 03:48
Time elapsed: 494 sec
---
SCM:
https://github.com/melezhik/pets.git
Git sha: f095da7
Git comment: set go for archlinux
image:
- melezhik/sparrow:alpine
- melezhik/sparrow:debian
- melezhik/sparrow:ubuntu
- melezhik/sparrow:archlinux
tasks:
-
name: go_test
language: Bash
code: |
set -e
echo "Run tests for OS: $os ..."
if test "$os" = "ubuntu" || test "$os" = "debian"; then
export PATH=/usr/local/go/bin:$PATH
fi
go version
cd source
go test -v
default: true
depends:
-
name: go_build
-
name: go_build
language: Bash
code: |
set -e
if test "$os" = "ubuntu" || test "$os" = "debian" || test "$os" = "arch" || test "$os" = "archlinux"; then
export PATH=/usr/local/go/bin:$PATH
fi
go version
cd source
go build -v
depends:
-
name: install-go
-
name: install-go
language: Bash
code: |
if test $os = "alpine"; then
sudo apk add go \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
else
sudo rm -rf /usr/local/go
curl -sfL https://go.dev/dl/go1.19.3.linux-amd64.tar.gz -o ~/go1.19.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf ~/go*.linux-amd64.tar.gz
fi
[35m03:47:46[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[1;36m[task run: task.bash - tasks/install-go][0m
[1;36m[dump code: task.bash][0m
[1] if test $os = "alpine"; then
[2] sudo apk add go \
[3] --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
[4] else
[5] sudo rm -rf /usr/local/go
[6] curl -sfL https://go.dev/dl/go1.19.3.linux-amd64.tar.gz -o ~/go1.19.3.linux-amd64.tar.gz
[7] sudo tar -C /usr/local -xzf ~/go*.linux-amd64.tar.gz
[8] fi
[9]
[1;36m[task stdout][0m
[35m03:47:09[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
[1;36m[task run: task.bash - tasks/go_build][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] if test "$os" = "ubuntu" || test "$os" = "debian" || test "$os" = "arch" || test "$os" = "archlinux"; then
[3] export PATH=/usr/local/go/bin:$PATH
[4] fi
[5] go version
[6] cd source
[7] go build -v
[8]
[1;36m[task stdout][0m
[35m03:47:56[0m :: go version go1.19.3 linux/amd64
[1;36m[task stderr][0m
[35m03:47:56[0m :: go: downloading github.com/hashicorp/logutils v1.0.0
[35m03:47:56[0m :: github.com/hashicorp/logutils
[35m03:47:56[0m :: github.com/ema/pets
[35m03:46:37[0m :: [repository] - index updated from https://sparrowhub.io/repo/api/v1/index
run stage: run
source directory does not yet exist, download source archive from storage
[35m03:46:41[0m :: [repository] - installing pack-unpack, version 0.000001
[1;36m[task run: task.bash - unpack source archive][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2]
[3] file=$(config file)
[4] dir=$(config dir)
[5]
[6] echo "tar -xzf $file "
[7]
[8] tar -xzf $file
[9]
[10] if test $dir; then
[11] ls -l $dir
[12] fi
[13]
[14]
[1;36m[task stdout][0m
[35m03:46:44[0m :: tar -xzf source.tar.gz
[1;36m[task run: task.bash - tasks/go_test][0m
[1;36m[dump code: task.bash][0m
[1] set -e
[2] echo "Run tests for OS: $os ..."
[3] if test "$os" = "ubuntu" || test "$os" = "debian"; then
[4] export PATH=/usr/local/go/bin:$PATH
[5] fi
[6] go version
[7] cd source
[8] go test -v
[9]
[1;36m[task stdout][0m
[35m03:47:58[0m :: Run tests for OS: arch ...
[1;36m[task stderr][0m
[35m03:47:58[0m :: /var/.sparrowdo/env/go_test/.sparrowdo/tasks/go_test/task.bash: line 6: go: command not found
[35m03:47:58[0m :: task exit status: 127
[35m03:47:58[0m :: task tasks/go_test FAILED
The spawned command 'docker exec -i sparrow-worker sh -l /var/.sparrowdo/env/go_test/.sparrowdo/sparrowrun.sh' exited unsuccessfully (exit code: 127, signal: 0)
in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/resources/D89191B85489D8D1AA2CA29B23BB54732926E4C8 line 13
in sub MAIN at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 3
in block <unit> at /home/sparrow/.rakubrew/versions/moar-2022.12/share/perl6/site/bin/sparrowdo line 1