concourse / concourse-pipeline-resource

!!! use the `set_pipeline` step instead !!!
https://concourse-ci.org/jobs.html#schema.step.set-pipeline-step.set_pipeline
MIT License
76 stars 42 forks source link

[bug] build fails on macOS #29

Closed trobert2 closed 6 years ago

trobert2 commented 6 years ago

Build as described in documentation fails.

$ git clone https://github.com/concourse/concourse-pipeline-resource.git
$ cd concourse-pipeline-resource
$ docker build -t concourse-pipeline-resource .
Sending build context to Docker daemon  9.686MB
Step 1/18 : FROM golang:alpine as builder
 ---> 85256d3905e2
Step 2/18 : RUN apk add --no-cache curl jq
 ---> Using cache
 ---> f737adc68714
Step 3/18 : RUN mkdir -p /assets
 ---> Using cache
 ---> 5aa762b7a0bc
Step 4/18 : RUN url=$(curl -s "https://api.github.com/repos/concourse/concourse/releases/latest"     | jq -r '.assets[] | select(.name | test("fly_linux_amd64")) | .browser_download_url') &&    curl -L "$url" -o /assets/fly
 ---> Using cache
 ---> 9f8b8f918749
Step 5/18 : COPY . /go/src/github.com/concourse/concourse-pipeline-resource
 ---> 86993cd443d2
Step 6/18 : ENV CGO_ENABLED 0
 ---> Running in 2dfa053cd06b
Removing intermediate container 2dfa053cd06b
 ---> d61314811016
Step 7/18 : RUN go build -o /assets/in github.com/concourse/concourse-pipeline-resource/cmd/in
 ---> Running in 9ceb9ed12dbb
Removing intermediate container 9ceb9ed12dbb
 ---> 544c3fbd8a61
Step 8/18 : RUN go build -o /assets/out github.com/concourse/concourse-pipeline-resource/cmd/out
 ---> Running in 453613cfbf16
Removing intermediate container 453613cfbf16
 ---> 14f38727ec72
Step 9/18 : RUN go build -o /assets/check github.com/concourse/concourse-pipeline-resource/cmd/check
 ---> Running in fbd96dac63d0
Removing intermediate container fbd96dac63d0
 ---> da0070214e39
Step 10/18 : RUN set -e; for pkg in $(go list ./... | grep -v "acceptance"); do         go test -o "/tests/$(basename $pkg).test" -c $pkg;  done
 ---> Running in 9f12290257aa
# github.com/concourse/concourse-pipeline-resource/cmd/check
src/github.com/concourse/concourse-pipeline-resource/cmd/check/main.go:75: Fatalln call has possible formatting directive %v
The command '/bin/sh -c set -e; for pkg in $(go list ./... | grep -v "acceptance"); do      go test -o "/tests/$(basename $pkg).test" -c $pkg;  done' returned a non-zero code: 2