Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build broken with go update #12

Open
sarahkevinking opened this issue Oct 16, 2015 · 2 comments
Open

Docker build broken with go update #12

sarahkevinking opened this issue Oct 16, 2015 · 2 comments

Comments

@sarahkevinking
Copy link

It's been awhile since I've been in goland. Any idea which version of go was being used in the last working build? Currently getting a series of errors:

# github.com/statsd/system/pkg/memory
gopath/src/github.com/statsd/system/pkg/memory/memory.go:66: cannot use stat (type *linux.MemInfo) as type linux.MemInfo in argument to percent
gopath/src/github.com/statsd/system/pkg/memory/memory.go:67: cannot use stat (type *linux.MemInfo) as type linux.MemInfo in argument to swapPercent
gopath/src/github.com/statsd/system/pkg/memory/memory.go:70: invalid operation: stat["MemTotal"] (type *linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:71: cannot use stat (type *linux.MemInfo) as type linux.MemInfo in argument to used
gopath/src/github.com/statsd/system/pkg/memory/memory.go:72: invalid operation: stat["MemFree"] (type *linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:73: invalid operation: stat["Active"] (type *linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:74: invalid operation: stat["SwapTotal"] (type *linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:75: invalid operation: stat["SwapFree"] (type *linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:93: invalid operation: s["SwapTotal"] (type linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:94: invalid operation: s["SwapFree"] (type linux.MemInfo does not support indexing)
gopath/src/github.com/statsd/system/pkg/memory/memory.go:94: too many errors
INFO[0079] The command [/bin/sh -c /bin/go-build] returned a non-zero code: 2 
@bryanlarsen
Copy link

Perhaps you should take "Docker" out of the bug title; statsd/system does not build in go1.5.1 for me either, and I'm not using Docker.

@bryanlarsen
Copy link

It doesn't build with go1.2.1 either.

ques0942 added a commit to ques0942/system that referenced this issue Mar 29, 2019
ques0942 added a commit to ques0942/system that referenced this issue Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants