"fatal error: concurrent map read and map write" -- what to do?

Hello all,

I’m a huge Hugo fan but now I’m having a problem that is completely insurmountable given my level of Go understanding. I would really be grateful for any help working around this.

Any attempts to build my Hugo sites (many, many sites, during 99/100 attempts) simply fails with this error and a huge stacktrace. I will append one of these huge stacktraces to this post.

So now Hugo doesn’t work, and all of my websites are in Hugo format. Consequently, I can’t maintain any of my websites.

I googled this issue and searched it on this forum as well. I upgraded to the latest stable Go release, 1.7.4, and also tried building Hugo from source (latest master branch), in addition to trying latest stable Hugo build. No matter what, I get this error.

I am using the following theme: GitHub - alanorth/hugo-theme-bootstrap4-blog: A blogging-centric Bootstrap v4 theme for the Hugo static site generator.

How can I work around this issue until it is fixed? This completely breaks functionality. Am I doing something wrong?

It actually does build many of the pages, but from what I can tell, not all of them.

Thank you all sincerely.

Started building sites …
fatal error: concurrent map read and map write

goroutine 3808 [running]:
runtime.throw(0x7040c0, 0x21)
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/panic.go:566 +0x95 fp=0xc424f41778 sp=0xc424f41758
runtime.mapaccess1_faststr(0x647e40, 0xc420426150, 0xc4203c82a2, 0x25, 0xc42071dc40)
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/hashmap_fast.go:201 +0x4f3 fp=0xc424f417d8 sp=0xc424f41778
text/template.(*state).walkTemplate(0xc424f41a48, 0x6e6be0, 0xc4206f3400, 0x16, 0xc420459e80)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:369 +0x9a fp=0xc424f418a8 sp=0xc424f417d8
text/template.(*state).walk(0xc424f41a48, 0x6e6be0, 0xc4206f3400, 0x16, 0x9fbba0, 0xc420459e80)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:239 +0x24c fp=0xc424f41930 sp=0xc424f418a8
text/template.(*state).walk(0xc424f41a48, 0x6e6be0, 0xc4206f3400, 0x16, 0x9fb960, 0xc420466870)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:234 +0x13d fp=0xc424f419b8 sp=0xc424f41930
text/template.(*Template).execute(0xc4203b3380, 0x9f1e20, 0xc4237cff10, 0x6e6be0, 0xc4206f3400, 0x0, 0x0)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:189 +0x204 fp=0xc424f41aa0 sp=0xc424f419b8
text/template.(*Template).Execute(0xc4203b3380, 0x9f1e20, 0xc4237cff10, 0x6e6be0, 0xc4206f3400, 0xc420111ea0, 0xc42583d601)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:175 +0x53 fp=0xc424f41ae8 sp=0xc424f41aa0
html/template.(*Template).Execute(0xc420427020, 0x9f1e20, 0xc4237cff10, 0x6e6be0, 0xc4206f3400, 0x1a, 0xc420427020)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/template.go:104 +0x78 fp=0xc424f41b30 sp=0xc424f41ae8
github.com/spf13/hugo/hugolib.(*Site).renderThing(0xc420092580, 0x6e6be0, 0xc4206f3400, 0xc42583d6c0, 0x1a, 0x9f1e20, 0xc4237cff10, 0x61bfe0, 0x1bf663)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2436 +0x96 fp=0xc424f41b98 sp=0xc424f41b30
github.com/spf13/hugo/hugolib.(*Site).renderForLayouts(0xc420092580, 0xc4262d1e20, 0x1d, 0x6e6be0, 0xc4206f3400, 0x9f1e20, 0xc4237cff10, 0xc426acc400, 0xa, 0x10, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2408 +0x22a fp=0xc424f41c78 sp=0xc424f41b98
github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage(0xc420092580, 0xc4262d1e20, 0x1d, 0xc4262d1d40, 0x16, 0x6e6be0, 0xc4206f3400, 0xc426acc400, 0xa, 0x10, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2316 +0x128 fp=0xc424f41ea8 sp=0xc424f41c78
github.com/spf13/hugo/hugolib.pageRenderer(0xc420092580, 0xc4233d8cc0, 0xc4233d8c60, 0xc422461540)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1658 +0x22e fp=0xc424f41f70 sp=0xc424f41ea8
runtime.goexit()
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc424f41f78 sp=0xc424f41f70
created by github.com/spf13/hugo/hugolib.(*Site).renderPages
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1635 +0x330

goroutine 1 [chan send]:
github.com/spf13/hugo/hugolib.(*Site).renderPages(0xc420092580, 0x6fc644, 0x16)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1639 +0x3a7
github.com/spf13/hugo/hugolib.(*Site).render(0xc420092580, 0x100, 0x0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:820 +0x16f
github.com/spf13/hugo/hugolib.(*HugoSites).Build(0xc42034d8c0, 0x100, 0x0, 0x1b, 0x0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/hugo_sites.go:232 +0x257
github.com/spf13/hugo/commands.buildSites(0x0, 0x0, 0x0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/commands/hugo.go:666 +0xf0
github.com/spf13/hugo/commands.build(0x0, 0x0, 0x0, 0x0, 0x0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/commands/hugo.go:467 +0x99
github.com/spf13/hugo/commands.glob..func8(0xa3e180, 0xc4202093e0, 0x0, 0x1, 0x0, 0x0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/commands/hugo.go:124 +0x7d
github.com/spf13/cobra.(*Command).execute(0xa3e180, 0xc42000c250, 0x1, 0x1, 0xa3e180, 0xc42000c250)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/cobra/command.go:599 +0x234
github.com/spf13/cobra.(*Command).ExecuteC(0xa3e180, 0x7673f0, 0xfb36, 0xa46fb0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/cobra/command.go:689 +0x367
github.com/spf13/hugo/commands.Execute()
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/commands/hugo.go:174 +0x6d
main.main()
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/main.go:26 +0x32

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/asm_amd64.s:2086 +0x1

goroutine 3809 [runnable]:
sync.runtime_Semacquire(0xc4203b341c)
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/sema.go:47 +0x30
sync.(*RWMutex).RLock(0xc4203b3410)
/usr/local/Cellar/go/1.7.1/libexec/src/sync/rwmutex.go:43 +0x5d
text/template.findFunction(0xc4203c857f, 0x5, 0xc4203b3380, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/funcs.go:115 +0x107
text/template.(*state).evalFunction(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0xc420467ef0, 0x9fb780, 0xc420467ec0, 0xc42044ca80, 0x5, 0x8, …)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:526 +0x95
text/template.(*state).evalCommand(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0xc420467ec0, 0x0, 0x0, 0x0, 0x9fb840, 0xc420467aa0, …)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:427 +0x6f7
text/template.(*state).evalPipeline(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0xc4204633b0, 0x3, 0x3, 0xc42045cf60)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:400 +0xee
text/template.(*state).walkRange(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0xc420468280)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:309 +0xf3
text/template.(*state).walk(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0x9fbae0, 0xc420468280)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:237 +0x59c
text/template.(*state).walk(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0x9fb960, 0xc420467e60)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*state).walkIfOrWith(0xc424f3da48, 0xa, 0x6e6be0, 0xc4200b6500, 0x16, 0xc420463270, 0xc420467ad0, 0xc420467e60)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:267 +0x22a
text/template.(*state).walk(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0x9fb900, 0xc420468300)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:231 +0x2e8
text/template.(*state).walk(0xc424f3da48, 0x6e6be0, 0xc4200b6500, 0x16, 0x9fb960, 0xc420466870)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*Template).execute(0xc4203b3380, 0x9f1e20, 0xc423c3b5e0, 0x6e6be0, 0xc4200b6500, 0x0, 0x0)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:189 +0x204
text/template.(*Template).Execute(0xc4203b3380, 0x9f1e20, 0xc423c3b5e0, 0x6e6be0, 0xc4200b6500, 0xc420111ea0, 0xc42583d601)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:175 +0x53
html/template.(*Template).Execute(0xc420427020, 0x9f1e20, 0xc423c3b5e0, 0x6e6be0, 0xc4200b6500, 0x1a, 0xc420427020)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/template.go:104 +0x78
github.com/spf13/hugo/hugolib.(*Site).renderThing(0xc420092580, 0x6e6be0, 0xc4200b6500, 0xc42583d640, 0x1a, 0x9f1e20, 0xc423c3b5e0, 0x61bfe0, 0x1bf663)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2436 +0x96
github.com/spf13/hugo/hugolib.(*Site).renderForLayouts(0xc420092580, 0xc425ee29a0, 0x1b, 0x6e6be0, 0xc4200b6500, 0x9f1e20, 0xc423c3b5e0, 0xc425cfc400, 0xa, 0x10, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2408 +0x22a
github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage(0xc420092580, 0xc425ee29a0, 0x1b, 0xc425ee28c0, 0x14, 0x6e6be0, 0xc4200b6500, 0xc425cfc400, 0xa, 0x10, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2316 +0x128
github.com/spf13/hugo/hugolib.pageRenderer(0xc420092580, 0xc4233d8cc0, 0xc4233d8c60, 0xc422461540)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1658 +0x22e
created by github.com/spf13/hugo/hugolib.(*Site).renderPages
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1635 +0x330

goroutine 3806 [runnable]:
reflect.(*rtype).nameOff(0x6e6be0, 0xc400000d4d, 0x3c)
/usr/local/Cellar/go/1.7.1/libexec/src/reflect/type.go:662
reflect.(*rtype).Method(0x6e6be0, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …)
/usr/local/Cellar/go/1.7.1/libexec/src/reflect/type.go:834 +0xc9
reflect.(*rtype).MethodByName(0x6e6be0, 0xc4203c8592, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …)
/usr/local/Cellar/go/1.7.1/libexec/src/reflect/type.go:872 +0x22d
github.com/spf13/hugo/tpl.evaluateSubElem(0x6e6be0, 0xc4218c6a78, 0x196, 0xc4203c8592, 0x4, 0xc4218c6a78, 0x196, 0x2, 0x0, 0x0)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/tpl/template_funcs.go:573 +0x15c
github.com/spf13/hugo/tpl.checkWhereArray(0x6d25a0, 0xc4200925a0, 0x197, 0x61bfe0, 0xc42548deb0, 0x98, 0x61bfe0, 0xc42548ded0, 0x98, 0xc42548dee0, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/tpl/template_funcs.go:828 +0x1b9
github.com/spf13/hugo/tpl.where(0x6d2000, 0xc4200925a0, 0x61bfe0, 0xc42548deb0, 0xc424a8e420, 0x2, 0x2, 0x0, 0x0, 0x0, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/tpl/template_funcs.go:913 +0x360
reflect.Value.call(0x64b340, 0x767848, 0x13, 0x6e9cdc, 0x4, 0xc4264ee8a0, 0x3, 0x4, 0xa00600, 0x652140, …)
/usr/local/Cellar/go/1.7.1/libexec/src/reflect/value.go:434 +0x5c8
reflect.Value.Call(0x64b340, 0x767848, 0x13, 0xc4264ee8a0, 0x4, 0x4, 0x9fbb40, 0xc420468200, 0x61bfe0)
/usr/local/Cellar/go/1.7.1/libexec/src/reflect/value.go:302 +0xa4
text/template.(*state).evalCall(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0x64b340, 0x767848, 0x13, 0x9fb780, 0xc420467ec0, 0xc4203c857f, …)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:658 +0x530
text/template.(*state).evalFunction(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0xc420467ef0, 0x9fb780, 0xc420467ec0, 0xc42044ca80, 0x5, 0x8, …)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:530 +0x195
text/template.(*state).evalCommand(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0xc420467ec0, 0x0, 0x0, 0x0, 0x9fb840, 0xc420467aa0, …)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:427 +0x6f7
text/template.(*state).evalPipeline(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0xc4204633b0, 0x3, 0x3, 0xc42045cf60)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:400 +0xee
text/template.(*state).walkRange(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0xc420468280)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:309 +0xf3
text/template.(*state).walk(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0x9fbae0, 0xc420468280)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:237 +0x59c
text/template.(*state).walk(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0x9fb960, 0xc420467e60)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*state).walkIfOrWith(0xc424a15a48, 0xa, 0x6e6be0, 0xc42071b900, 0x16, 0xc420463270, 0xc420467ad0, 0xc420467e60)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:267 +0x22a
text/template.(*state).walk(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0x9fb900, 0xc420468300)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:231 +0x2e8
text/template.(*state).walk(0xc424a15a48, 0x6e6be0, 0xc42071b900, 0x16, 0x9fb960, 0xc420466870)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:234 +0x13d
text/template.(*Template).execute(0xc4203b3380, 0x9f1e20, 0xc423af3810, 0x6e6be0, 0xc42071b900, 0x0, 0x0)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:189 +0x204
text/template.(*Template).Execute(0xc4203b3380, 0x9f1e20, 0xc423af3810, 0x6e6be0, 0xc42071b900, 0xc420111ea0, 0xc42583d501)
/usr/local/Cellar/go/1.7.1/libexec/src/text/template/exec.go:175 +0x53
html/template.(*Template).Execute(0xc420427020, 0x9f1e20, 0xc423af3810, 0x6e6be0, 0xc42071b900, 0x1a, 0xc420427020)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/template.go:104 +0x78
github.com/spf13/hugo/hugolib.(*Site).renderThing(0xc420092580, 0x6e6be0, 0xc42071b900, 0xc42583d5c0, 0x1a, 0x9f1e20, 0xc423af3810, 0x61bfe0, 0x1bf663)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2436 +0x96
github.com/spf13/hugo/hugolib.(*Site).renderForLayouts(0xc420092580, 0xc425124e20, 0x1d, 0x6e6be0, 0xc42071b900, 0x9f1e20, 0xc423af3810, 0xc4259ec400, 0xa, 0x10, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2408 +0x22a
github.com/spf13/hugo/hugolib.(*Site).renderAndWritePage(0xc420092580, 0xc425124e20, 0x1d, 0xc425124d40, 0x16, 0x6e6be0, 0xc42071b900, 0xc4259ec400, 0xa, 0x10, …)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:2316 +0x128
github.com/spf13/hugo/hugolib.pageRenderer(0xc420092580, 0xc4233d8cc0, 0xc4233d8c60, 0xc422461540)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1658 +0x22e
created by github.com/spf13/hugo/hugolib.(*Site).renderPages
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1635 +0x330

goroutine 3805 [chan receive]:
github.com/spf13/hugo/hugolib.errorCollator(0xc4233d8c60, 0xc4233d8d20)
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1667 +0x8d
created by github.com/spf13/hugo/hugolib.(*Site).renderPages
/private/tmp/hugo-20161007-38177-tpsby2/hugo-0.17/src/github.com/spf13/hugo/hugolib/site.go:1607 +0xce

goroutine 3807 [runnable]:
html/template.ensurePipelineContains(0xc4204634a0, 0xc421b15f20, 0x3, 0x3)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/escape.go:245 +0x1e3
html/template.(*escaper).commit(0xc424a19a18)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/escape.go:751 +0x283
html/template.escapeTemplate(0xc420427020, 0x9fb960, 0xc420466870, 0xc4203a2ea0, 0x55, 0xd2b4, 0xc420424300)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/escape.go:39 +0x377
html/template.(*Template).escape(0xc420427020, 0x0, 0x0)
/usr/local/Cellar/go/1.7.1/libexec/src/html/template/template.go:85 +0x17f
html/template.(*Template).Execute(0x

I’m pretty sure this is:

And should be patched in the latest Hugo (and the underlying bug is fixed in upcoming Go 1.8).

SInce you claim that you have built the latest Hugo, I suggest you double check that; build with make and post the output of hugo version.

I apologize. It seems I have not built the latest hugo. How exactly do I go about doing this? Below you can see me attempting:

CAM-MacBook-Pro:FOLDERNAME username$ hugo version
Hugo Static Site Generator v0.17 BuildDate: 2016-10-07T21:42:05+07:00
CAM-MacBook-Pro:FOLDERNAME username$ cd $GOPATH/src/github.com/spf13/hugo
CAM-MacBook-Pro:hugo username$ hugo version
Hugo Static Site Generator v0.17 BuildDate: 2016-10-07T21:42:05+07:00
CAM-MacBook-Pro:hugo username$ git checkout master
Already on ‘master’
Your branch is up-to-date with ‘origin/master’.
CAM-MacBook-Pro:hugo username$ git pull
Already up-to-date.

See which executable you’re overwriting:

$ which hugo

Then, assuming that version is in $GOPATH/bin:

$ git pull
$ govendor sync
$ make check
$ go install

This process does not seem to update my version of Hugo. I’m sorry I guess at this point this has more to do with my understanding of environment/etc than Hugo.

make check does not build Hugo, try make install

Thank you for your help. I am still getting the same result.

CAM-MacBook-Pro:lastminutehotels username$ cd /Users/username/dev/go/src/github.com/spf13/hugo
CAM-MacBook-Pro:hugo username$ git pull
remote: Counting objects: 6, done.
remote: Total 6 (delta 5), reused 5 (delta 5), pack-reused 0
Unpacking objects: 100% (6/6), done.
From GitHub - gohugoio/hugo: The world’s fastest framework for building websites.
7862de9…e4ebe0d master → origin/master
Updating 7862de9…e4ebe0d
Fast-forward
docs/content/templates/functions.md | 8 +++±—
1 file changed, 4 insertions(+), 4 deletions(-)
CAM-MacBook-Pro:hugo username$ govendor sync
CAM-MacBook-Pro:hugo username$ make install
go install -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” ./…
CAM-MacBook-Pro:hugo username$ go install
CAM-MacBook-Pro:hugo username$ which hugo
/Users/username/dev/go/bin/hugo
CAM-MacBook-Pro:hugo username$ hugo version
Hugo Static Site Generator v0.17 BuildDate: 2016-10-07T21:42:05+07:00

Sorry, that should have been make install, not go install.

Try this then:

$ ls -l /Users/username/dev/go/bin/hugo # just to see timestamp
$ rm /Users/username/dev/go/bin/hugo
$ ls -l /Users/username/dev/go/bin/hugo  # expect to find no file
$ which hugo ; hugo  # just to confirm that it has been deleted
$ make install
$ /Users/username/dev/go/bin/hugo # expect to find file now

Thanks everyone. The latest dev version is working like a charm. This is indeed patched. :slightly_smiling:

Hugo is great.

Thanks for your persistence. Turns out I had hugo installed in two places and indeed needed to be running “make install”.

1 Like