Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: slice bounds out of range [:-1] #120

Closed
utkarsh2102 opened this issue Dec 16, 2019 · 1 comment · Fixed by #122
Closed

panic: runtime error: slice bounds out of range [:-1] #120

utkarsh2102 opened this issue Dec 16, 2019 · 1 comment · Fixed by #122

Comments

@utkarsh2102
Copy link
Member

Here's the snippet:

➜  dh-make-golang make -allow_unknown_hoster code.cloudfoundry.org/bytefmt  
panic: runtime error: slice bounds out of range [:-1]

goroutine 1 [running]:
main.shortHostName(0x7fff2089d3aa, 0x1d, 0x967f01, 0x1, 0x0, 0x1, 0xc0004f0320)
	github.com/Debian/dh-make-golang/make.go:546 +0x7dd
main.debianNameFromGopkg(0x7fff2089d3aa, 0x1d, 0x1, 0xc0001aa401, 0x0, 0x0)
	github.com/Debian/dh-make-golang/make.go:565 +0x122
main.execMake(0xc0000860a0, 0x2, 0x2, 0x0)
	github.com/Debian/dh-make-golang/make.go:784 +0x6a2
main.main()
	github.com/Debian/dh-make-golang/main.go:60 +0x317
@utkarsh2102
Copy link
Member Author

Am I missing something very obvious here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant