Skip to content

github-release resource gets nil pointer dereference panic when latest version is a Draft #153

@Amit-PivotalLabs

Description

@Amit-PivotalLabs

You can see the concourse build here:

https://mega.ci.cf-app.com/pipelines/release/jobs/announce-rc/builds/11

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x45da4e]

goroutine 1 [running]:
github.com/concourse/github-release-resource.(*InCommand).Run(0xc20800a4e0, 0x7ffe1ed07f81, 0xe, 0xc20802a910, 0xc, 0xc20802a900, 0xa, 0x0, 0x0, 0xc20800ccf0, ...)
    /tmp/build/1478dca3-fe5c-417b-4b39-c9dad7fa50a8/gopath/src/github.com/concourse/github-release-resource/in_command.go:44 +0xc8e
main.main()
    /tmp/build/1478dca3-fe5c-417b-4b39-c9dad7fa50a8/gopath/src/github.com/concourse/github-release-resource/cmd/in/in.go:27 +0x34b

goroutine 9 [runnable]:
net/http.(*persistConn).readLoop(0xc20807a160)
    /usr/src/go/src/net/http/transport.go:928 +0x9ce
created by net/http.(*Transport).dialConn
    /usr/src/go/src/net/http/transport.go:660 +0xc9f

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/src/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 10 [select]:
net/http.(*persistConn).writeLoop(0xc20807a160)
    /usr/src/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
    /usr/src/go/src/net/http/transport.go:661 +0xcbc

I had cf-release v218 still in Draft mode, triggered this build, and saw this error. Tried this two more times. Then I published the release so it was in Published mode rather than Draft, triggered again, and it was fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions