You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following along with the gophercon workshop I ran go-contrib-init -repo scratch outside the scratch directory and the command panicked. The command worked if I cd'd into the scratch directory.
What did you expect to see?
go-contrib-init -repo scratch
All good. Happy hacking!
Remember to squash your revised commits and preserve the magic Change-Id lines.
Next steps: https://golang.org/doc/contribute.html#commit_changes
What did you see instead?
go-contrib-init -repo scratch rc: 2
panic: runtime error: slice bounds out of range
goroutine 1 [running]:
main.detectrepo(0x60, 0x0)
/Users/sm/src/golang.org/x/tools/cmd/go-contrib-init/contrib.go:54 +0x253
main.init()
/Users/sm/src/golang.org/x/tools/cmd/go-contrib-init/contrib.go:27 +0x87
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version
go version devel +eab99a8d54 Mon Jun 26 21:12:22 2017 +0000 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Following along with the gophercon workshop I ran
go-contrib-init -repo scratch
outside thescratch
directory and the command panicked. The command worked if I cd'd into thescratch
directory.What did you expect to see?
go-contrib-init -repo scratch All good. Happy hacking! Remember to squash your revised commits and preserve the magic Change-Id lines. Next steps: https://golang.org/doc/contribute.html#commit_changes
What did you see instead?
go-contrib-init -repo scratch rc: 2 panic: runtime error: slice bounds out of range goroutine 1 [running]: main.detectrepo(0x60, 0x0) /Users/sm/src/golang.org/x/tools/cmd/go-contrib-init/contrib.go:54 +0x253 main.init() /Users/sm/src/golang.org/x/tools/cmd/go-contrib-init/contrib.go:27 +0x87
The text was updated successfully, but these errors were encountered: