Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Cannot install as per documentation #12

Closed
mathuin opened this issue Jan 19, 2017 · 1 comment
Closed

Cannot install as per documentation #12

mathuin opened this issue Jan 19, 2017 · 1 comment

Comments

@mathuin
Copy link

mathuin commented Jan 19, 2017

README.md provides a command for installation. When I run it on Ubuntu 16.04 LTS, it does not work.

$ go get -u github.com/google/shenzhen-go/cmd/shenzhen-go
# github.com/google/shenzhen-go/graph
go/src/github.com/google/shenzhen-go/graph/graph.go:114: enc.SetIndent undefined (type *json.Encoder has no field or method SetIndent)
$ uname -a
Linux nala 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Ubuntu 16.04.1 LTS \n \l

$ go version
go version go1.6.2 linux/amd64

Please let me know if there's anything else I can do to help diagnose the issue. This looks super fun!

@dmitshur
Copy link
Member

dmitshur commented Jan 19, 2017

From the error message, I can tell the problem is that shenzhen-go requires Go 1.7+, but you have 1.6. SetIndent is a method that was added to encoding/json.Encoder in 1.7.

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

No branches or pull requests

2 participants