mkenney/go-chrome

Can't install/run package

ozburo opened this issue · 3 comments

Hi! I'm trying to evaluate your project since it looks really promising but I can't get it installed correctly?!

I'm not sure if I installed it incorrectly our not using correct depenencies etc.etc. -- I simply added the following to my build:

go get github.com/mkenney/go-errors
go get github.com/mkenney/go-chrome

And I get the following errors on install:

./socket.command_mapper.go:51:23: not enough arguments in call to "github.com/mkenney/go-errors".New
	have (string)
	want ("github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.conner.go:38:19: not enough arguments in call to "github.com/mkenney/go-errors".Wrap
	have (error, string)
	want (error, "github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.conner.go:69:18: not enough arguments in call to "github.com/mkenney/go-errors".Wrap
	have (error, string)
	want (error, "github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.conner.go:84:19: not enough arguments in call to "github.com/mkenney/go-errors".Wrap
	have (error, string)
	want (error, "github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.conner.go:89:19: not enough arguments in call to "github.com/mkenney/go-errors".Wrap
	have (error, string)
	want (error, "github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.conner.go:103:19: not enough arguments in call to "github.com/mkenney/go-errors".Wrap
	have (error, string)
	want (error, "github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.conner.go:108:19: not enough arguments in call to "github.com/mkenney/go-errors".Wrap
	have (error, string)
	want (error, "github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.event_handler_mapper.go:47:19: not enough arguments in call to "github.com/mkenney/go-errors".New
	have (string)
	want ("github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.event_handler_mapper.go:79:22: not enough arguments in call to "github.com/mkenney/go-errors".New
	have (string)
	want ("github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.event_handler_mapper.go:108:17: not enough arguments in call to "github.com/mkenney/go-errors".New
	have (string)
	want ("github.com/mkenney/go-errors".Code, string, ...interface {})
./socket.event_handler_mapper.go:108:17: too many errors

Looks like it doesn't like that go-errors package eventhough it complained about not having it.

Can we get a installation guide or check that this should work?

Thanks!

Hi, thank you for reporting that!

The errors package was transferred to a github organization and refactored to support error codes. I've merged an update that

You can get the errors package with go get github.com/bdlm/errors. Please let me know if that fixes the issue for you.

Thanks for replying so quickly and solving this issue.

I can now successfully install the package, yay!

Great! Let me know if you have any more trouble.