jenkins-x-plugins/jx-release-version

panic: runtime error: index out of range if Makefile has target VERSION

Closed this issue · 1 comments

Update Makefile adding:

VERSION:
	echo "foo"

Run the jx-release-version utility

jx-release-version
panic: runtime error: index out of range                                                                                                                                                                    

goroutine 1 [running]:
main.getVersion(0x0, 0x6ef703, 0x1, 0x0, 0x0, 0x0, 0x0, 0x6f0010, 0x5, 0x726680, ...)
        /home/foo/go/src/github.com/jenkins-x/jx-release-version/main.go:92 +0xd92
main.getNewVersionFromTag(0x0, 0x6ef703, 0x1, 0x0, 0x0, 0x0, 0x0, 0x10, 0xc420096c10, 0x0, ...)
        /home/foo/go/src/github.com/jenkins-x/jx-release-version/main.go:244 +0x149
main.main()
        /home/foo/go/src/github.com/jenkins-x/jx-release-version/main.go:52 +0x202

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale