Skip to content

Instantly share code, notes, and snippets.

@ysqi
Created January 25, 2016 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ysqi/d212166b173b0f81f679 to your computer and use it in GitHub Desktop.
Save ysqi/d212166b173b0f81f679 to your computer and use it in GitHub Desktop.
wercker-hugo-build-error
export WERCKER_STEP_ROOT="/pipeline/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e"
export WERCKER_STEP_ID="hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e"
export WERCKER_STEP_OWNER="arjen"
export WERCKER_STEP_NAME="hugo-build"
export WERCKER_REPORT_NUMBERS_FILE="/report/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/numbers.ini"
export WERCKER_REPORT_MESSAGE_FILE="/report/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/message.txt"
export WERCKER_REPORT_ARTIFACTS_DIR="/report/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/artifacts"
export WERCKER_HUGO_BUILD_PROD_BRANCHES="master"
export WERCKER_HUGO_BUILD_DEV_FLAGS=""
export WERCKER_HUGO_BUILD_FORCE_INSTALL="false"
export WERCKER_HUGO_BUILD_FLAGS=""
export WERCKER_HUGO_BUILD_THEME=""
export WERCKER_HUGO_BUILD_DEV_BRANCHES=""
export WERCKER_HUGO_BUILD_CONFIG=""
export WERCKER_HUGO_BUILD_DISABLE_PYGMENTS="false"
export WERCKER_HUGO_BUILD_VERSION="0.15"
source "/pipeline/hugo-build-e17dfc55-511a-4fc3-8870-37b0470bc71e/run.sh" < /dev/null
ERROR: 2016/01/25 template: shortcodes/fileindex.html:7: function "readDir" not defined
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x48bdf6]
goroutine 66 [running]:
github.com/spf13/hugo/hugolib.isInnerShortcode(0xc208144900, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcode.go:166 +0xf6
github.com/spf13/hugo/hugolib.extractShortcode(0xc20896d8d0, 0xc2082f5c00, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcode.go:336 +0xa2a
github.com/spf13/hugo/hugolib.extractShortcodes(0xc20836f800, 0x3f6, 0xc2082f5c00, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcode.go:412 +0x757
github.com/spf13/hugo/hugolib.extractAndRenderShortcodes(0xc20836f800, 0x3f6, 0xc2082f5c00, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x25c, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcode.go:245 +0x9a
github.com/spf13/hugo/hugolib.(*Page).ProcessShortcodes(0xc2082f5c00, 0x7f49d5d02850, 0xc208124800)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:775 +0x7b
github.com/spf13/hugo/hugolib.markdownHandler.PageConvert(0x0, 0x0, 0x0, 0xc2082f5c00, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_page.go:59 +0x5f
github.com/spf13/hugo/hugolib.(*markdownHandler).PageConvert(0xc20809e180, 0xc2082f5c00, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:107 +0xd7
github.com/spf13/hugo/hugolib.(*MetaHandle).Convert(0xc208148820, 0xae1020, 0xc2082f5c00, 0xc2080aa000, 0xc208380ae0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_meta.go:77 +0x42e
github.com/spf13/hugo/hugolib.pageConverter(0xc2080aa000, 0xc208380b40, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:625 +0x101
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:569 +0x61b
goroutine 1 [chan send]:
github.com/spf13/hugo/hugolib.(*Site).CreatePages(0xc2080aa000, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:575 +0x6e6
github.com/spf13/hugo/hugolib.(*Site).Process(0xc2080aa000, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:374 +0x4f6
github.com/spf13/hugo/hugolib.(*Site).Build(0xc2080aa000, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:258 +0x4b
github.com/spf13/hugo/commands.buildSite(0xc20821dc1f, 0x1, 0x1, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/commands/hugo.go:384 +0xd2
github.com/spf13/hugo/commands.build(0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/commands/hugo.go:285 +0x2cb
github.com/spf13/hugo/commands.func·008(0xe4c620, 0xc208033120, 0x0, 0x1)
/Users/spf13/gopath/src/github.com/spf13/hugo/commands/hugo.go:53 +0x3f
github.com/spf13/cobra.(*Command).execute(0xe4c620, 0xc20800a010, 0x1, 0x1, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/cobra/command.go:495 +0x65c
github.com/spf13/cobra.(*Command).Execute(0xe4c620, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/cobra/command.go:560 +0x18d
github.com/spf13/hugo/commands.Execute()
/Users/spf13/gopath/src/github.com/spf13/hugo/commands/hugo.go:66 +0x2f
main.main()
/Users/spf13/gopath/src/github.com/spf13/hugo/main.go:24 +0x2f
goroutine 65 [chan receive]:
github.com/spf13/hugo/hugolib.fileConverter(0xc2080aa000, 0xc208380ba0, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:632 +0x77
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:568 +0x5e0
goroutine 49 [chan send]:
text/template/parse.lexSpace(0xc20819c880, 0xc4c8a0)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/parse/lex.go:339 +0xdd
text/template/parse.(*lexer).run(0xc20819c880)
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/parse/lex.go:198 +0x5d
created by text/template/parse.lex
/usr/local/Cellar/go/1.4.2/libexec/src/text/template/parse/lex.go:191 +0x1ac
goroutine 67 [chan receive]:
github.com/spf13/hugo/hugolib.fileConverter(0xc2080aa000, 0xc208380ba0, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:632 +0x77
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:568 +0x5e0
goroutine 68 [runnable]:
reflect.(*rtype).Field(0xa7e660, 0x1, 0xc20845b1e0, 0xc20845b4d0, 0x928ce0, 0xc208455640, 0xc1, 0x928ce0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.4.2/libexec/src/reflect/type.go:599
github.com/mitchellh/mapstructure.(*Decoder).decodeStruct(0xc208362780, 0x0, 0x0, 0x928460, 0xc2081ea8a0, 0xa7e660, 0xc208455640, 0xd9, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/mitchellh/mapstructure/mapstructure.go:600 +0xa52
github.com/mitchellh/mapstructure.(*Decoder).decode(0xc208362780, 0x0, 0x0, 0x928460, 0xc2081ea8a0, 0xa7e660, 0xc208455640, 0xd9, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/mitchellh/mapstructure/mapstructure.go:218 +0x99f
github.com/mitchellh/mapstructure.(*Decoder).Decode(0xc208362780, 0x928460, 0xc2081ea8a0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/mitchellh/mapstructure/mapstructure.go:173 +0xec
github.com/mitchellh/mapstructure.Decode(0x928460, 0xc2081ea8a0, 0x900b80, 0xc208455640, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/mitchellh/mapstructure/mapstructure.go:115 +0xe6
github.com/spf13/hugo/hugolib.func·006()
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:237 +0x3ba
sync.(*Once).Do(0xc208554990, 0xc20845bb50)
/usr/local/Cellar/go/1.4.2/libexec/src/sync/once.go:44 +0xd4
github.com/spf13/hugo/hugolib.(*Page).getRenderingConfig(0xc208554800, 0xc2083fad40)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:240 +0x57
github.com/spf13/hugo/hugolib.(*Page).renderContent(0xc208554800, 0xc208756f00, 0x4b2, 0x500, 0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:212 +0x8d
github.com/spf13/hugo/hugolib.markdownHandler.PageConvert(0x0, 0x0, 0x0, 0xc208554800, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_page.go:61 +0xd1
github.com/spf13/hugo/hugolib.(*markdownHandler).PageConvert(0xc20809e180, 0xc208554800, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:107 +0xd7
github.com/spf13/hugo/hugolib.(*MetaHandle).Convert(0xc2083fad00, 0xae1020, 0xc208554800, 0xc2080aa000, 0xc208380ae0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_meta.go:77 +0x42e
github.com/spf13/hugo/hugolib.pageConverter(0xc2080aa000, 0xc208380b40, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:625 +0x101
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:569 +0x61b
goroutine 69 [chan receive]:
github.com/spf13/hugo/hugolib.fileConverter(0xc2080aa000, 0xc208380ba0, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:632 +0x77
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:568 +0x5e0
goroutine 70 [runnable]:
github.com/spf13/hugo/helpers.StripHTML(0xc208748000, 0x4388, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/helpers/content.go:105 +0x141
github.com/spf13/hugo/hugolib.func·005()
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:113 +0x44
sync.(*Once).Do(0xc2083f2578, 0xc2088dbc88)
/usr/local/Cellar/go/1.4.2/libexec/src/sync/once.go:44 +0xd4
github.com/spf13/hugo/hugolib.(*Page).initPlain(0xc2083f2400)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:115 +0x57
github.com/spf13/hugo/hugolib.(*Page).PlainWords(0xc2083f2400, 0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:107 +0x43
github.com/spf13/hugo/hugolib.(*Page).setSummary(0xc2083f2400)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/page.go:197 +0x5aa
github.com/spf13/hugo/hugolib.(*MetaHandle).Convert(0xc2083774a0, 0xae1020, 0xc2083f2400, 0xc2080aa000, 0xc208380ae0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_meta.go:78 +0x47e
github.com/spf13/hugo/hugolib.pageConverter(0xc2080aa000, 0xc208380b40, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:625 +0x101
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:569 +0x61b
goroutine 71 [chan receive]:
github.com/spf13/hugo/hugolib.fileConverter(0xc2080aa000, 0xc208380ba0, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:632 +0x77
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:568 +0x5e0
goroutine 72 [runnable]:
github.com/spf13/hugo/hugolib.markdownHandler.PageConvert(0x0, 0x0, 0x0, 0xc2082f3400, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_page.go:74 +0x56b
github.com/spf13/hugo/hugolib.(*markdownHandler).PageConvert(0xc20809e180, 0xc2082f3400, 0x7f49d5d02850, 0xc208124800, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:107 +0xd7
github.com/spf13/hugo/hugolib.(*MetaHandle).Convert(0xc208558dc0, 0xae1020, 0xc2082f3400, 0xc2080aa000, 0xc208380ae0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/handler_meta.go:77 +0x42e
github.com/spf13/hugo/hugolib.pageConverter(0xc2080aa000, 0xc208380b40, 0xc208380ae0, 0xc208230e60)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:625 +0x101
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:569 +0x61b
goroutine 73 [chan receive]:
github.com/spf13/hugo/hugolib.converterCollator(0xc2080aa000, 0xc208380ae0, 0xc208132420)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:642 +0x98
created by github.com/spf13/hugo/hugolib.(*Site).CreatePages
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/site.go:572 +0x65c
goroutine 100 [chan send]:
github.com/spf13/hugo/hugolib.lexShortcodeParam(0xc20806eab0, 0x0, 0xaeb330)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcodeparser.go:405 +0x211
github.com/spf13/hugo/hugolib.lexInsideShortcode(0xc20806eab0, 0xc4bda0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcodeparser.go:546 +0x590
github.com/spf13/hugo/hugolib.(*pagelexer).runShortcodeLexer(0xc20806eab0)
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcodeparser.go:196 +0x61
created by github.com/spf13/hugo/hugolib.newShortcodeLexer
/Users/spf13/gopath/src/github.com/spf13/hugo/hugolib/shortcodeparser.go:188 +0x16c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment