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

bufferpool/bufpool.go:21: undefined: sync.Pool #896

Closed
dtaht opened this issue Feb 14, 2015 · 3 comments
Closed

bufferpool/bufpool.go:21: undefined: sync.Pool #896

dtaht opened this issue Feb 14, 2015 · 3 comments
Labels

Comments

@dtaht
Copy link

dtaht commented Feb 14, 2015

I am unfortunately very new to go, and when I attempt to build "head" from your current git trees and installation documentation, I get:

go build -ldflags "-X github.com/spf13/hugo/hugolib.CommitHash git rev-parse --short HEAD 2>/dev/null -X github.com/spf13/hugo/hugolib.BuildDate date +%FT%T%z" -o hugo main.go

github.com/spf13/hugo/bufferpool

bufferpool/bufpool.go:21: undefined: sync.Pool
make: *** [gitinfo] Error 2

@bep
Copy link
Member

bep commented Feb 14, 2015

I believe sync.Pool was introduced in go 1.3.

So if go versionsays go 1.2 you'll have to upgrade to 1.3 or 1.4.

@bep
Copy link
Member

bep commented Feb 14, 2015

Further questions? See http://discuss.gohugo.io/

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants