francoispqt / gojay

high performance JSON encoder/decoder with stream API for Golang
MIT License
2.11k stars 112 forks source link

Bug: go install not working #115

Closed marcsantiago closed 5 years ago

marcsantiago commented 5 years ago

When using the command go install github.com/francoispqt/gojay/gojay

This error is returned

github.com/viant/toolbox

../../../viant/toolbox/yaml.go:13:10: undefined: yaml.NewEncoder

Mac go version go version go1.12.5 darwin/amd64

francoispqt commented 5 years ago

Hey, I have updarted dependencies with #117

Please let me know if it does not work.

Thanks

marcsantiago commented 5 years ago

It does work. The issue was with Go not updating dependencies the solution that was to run the command like this

➜ ~ go get -u gopkg.in/yaml.v2 ➜ ~ go get github.com/viant/toolbox ➜ ~ go install github.com/francoispqt/gojay/gojay

where I must have had an old copy yaml.v2 that did not define yaml.NewEncoder