Skip to content

Instantly share code, notes, and snippets.

@carlisia
Last active September 6, 2015 00:18
Show Gist options
  • Save carlisia/2eb4eb190268abb95e76 to your computer and use it in GitHub Desktop.
Save carlisia/2eb4eb190268abb95e76 to your computer and use it in GitHub Desktop.
☻ ./labyrinth daedalus --help ruby-2.2.0p0 master 109bbc4 ✗
panic: shorthand redefinition
goroutine 1 [running]:
github.com/spf13/pflag.(*FlagSet).AddFlag(0xc20805ab80, 0xc2080a0510)
/Users/carlisiacampos/devgo/src/github.com/spf13/pflag/flag.go:545 +0xb8f
github.com/spf13/cobra.func·019(0xc2080a0510)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:1069 +0x8c
github.com/spf13/pflag.(*FlagSet).VisitAll(0xc20805ac80, 0xc208063770)
/Users/carlisiacampos/devgo/src/github.com/spf13/pflag/flag.go:234 +0x88
github.com/spf13/cobra.func·020(0x73c5a0)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:1071 +0xf8
github.com/spf13/cobra.func·020(0x73c220)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:1074 +0x12e
github.com/spf13/cobra.(*Command).mergePersistentFlags(0x73c220)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:1078 +0x2ce
github.com/spf13/cobra.stripFlags(0xc2080f79d0, 0x1, 0x1, 0x73c220, 0x0, 0x0, 0x0)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:334 +0x98
github.com/spf13/cobra.func·006(0x73c220, 0xc2080f79d0, 0x1, 0x1, 0x8, 0x0, 0x0, 0x0)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:394 +0x8a
github.com/spf13/cobra.func·006(0x73c5a0, 0xc20800a010, 0x2, 0x2, 0x4, 0x0, 0x0, 0x0)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:402 +0x2c1
github.com/spf13/cobra.(*Command).Find(0x73c5a0, 0xc20800a010, 0x2, 0x2, 0x5446d0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:424 +0x166
github.com/spf13/cobra.(*Command).Execute(0x73c5a0, 0x0, 0x0)
/Users/carlisiacampos/devgo/src/github.com/spf13/cobra/command.go:582 +0x129
github.com/carlisia/labyrinth/commands.Execute()
/Users/carlisiacampos/devgo/src/github.com/carlisia/labyrinth/commands/labyrinth.go:105 +0x2a
main.main()
/Users/carlisiacampos/devgo/src/github.com/carlisia/labyrinth/main.go:25 +0x1b
goroutine 5 [runnable]:
os/signal.loop()
/usr/local/Cellar/go/1.4.2/libexec/src/os/signal/signal_unix.go:19
created by os/signal.init·1
/usr/local/Cellar/go/1.4.2/libexec/src/os/signal/signal_unix.go:27 +0x35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment