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

go get fails on go 1.7 - type time.Duration has no field or method Round) #13

Closed
klauern opened this issue Nov 20, 2017 · 3 comments
Closed

Comments

@klauern
Copy link

klauern commented Nov 20, 2017

I can go get this fine on my Arch distro, but on my Win10 box, it fails:

~> go get github.com/tj/node-prune/cmd/node-prune
# github.com/tj/node-prune/cmd/node-prune
dev\golang\src\github.com\tj\node-prune\cmd\node-prune\main.go:50: time.Since(start).Round undefined (type time.Duration has no field or method Round)
@klauern klauern changed the title go get fails on Windows - type time.Duration has no field or method Round) go get fails on go 1.7 - type time.Duration has no field or method Round) Nov 20, 2017
@klauern
Copy link
Author

klauern commented Nov 20, 2017

I think that it's more due to the version of go I'm running on Windows: 1.7.4. I'll see if I can run it on a later version and get it to work.

@tj
Copy link
Owner

tj commented Nov 20, 2017

yep make sure you have a more recent Go #1

@klauern
Copy link
Author

klauern commented Nov 20, 2017

Gah, that was it. I put 1.9.2 on and it works just fine. I'll close it.

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

No branches or pull requests

2 participants