Michaels-Mac-Pro:docs quoha$ brew install hugo
==> Installing dependencies for hugo: go, bazaar
==> Installing hugo dependency: go
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/go-1.3.3.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring go-1.3.3.yosemite.bottle.tar.gz
==> Caveats
As of go 1.2, a valid GOPATH is required to use the `go get` command:
http://golang.org/doc/code.html#GOPATH
`go vet` and `go doc` are now part of the go.tools sub repo:
http://golang.org/doc/go1.2#go_tools_godoc
To get `go vet` and `go doc` run:
go get code.google.com/p/go.tools/cmd/godoc
go get code.google.com/p/go.tools/cmd/vet
You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
/usr/local/Cellar/go/1.3.3: 4344 files, 114M
==> Installing hugo dependency: bazaar
==> Downloading https://launchpad.net/bzr/2.6/2.6.0/+download/bzr-2.6.0.tar.gz
######################################################################## 100.0%
==> make man1/bzr.1
==> make
/usr/local/Cellar/bazaar/2.6.0: 982 files, 21M, built in 23 seconds
==> Installing hugo
==> Downloading https://github.com/spf13/hugo/archive/v0.12.tar.gz
######################################################################## 100.0%
==> go get
get
# code.google.com/p/go-html-transform/h5
src/code.google.com/p/go-html-transform/h5/h5.go:30: cannot use "code.google.com/p/go.net/html/atom".Body (type "code.google.com/p/go.net/html/atom".Atom) as type "golang.org/x/net/html/atom".Atom in assignment
src/code.google.com/p/go-html-transform/h5/node.go:92: cannot use "code.google.com/p/go.net/html/atom".A (type "code.google.com/p/go.net/html/atom".Atom) as type "golang.org/x/net/html/atom".Atom in field value
READ THIS: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
I keep getting the same error if i clone the repo or using brew install hugo
.
Did you manage to get it running?
No, I haven’t been able to get it work.
This is a problem with an upstream package:
https://code.google.com/p/go-html-transform/issues/detail?id=17 and https://code.google.com/p/go-html-transform/issues/detail?id=18
There has been a patch submitted, but it has not yet been applied, it appears.
@michael_henderson, have you been able to get this to work? I think we may need an alternative answer to go-html-transform because the library is functionally abandoned (the last changes were in March 2014, the last changes before that were in mid-2013) and if people can’t install hugo from source at this point (which is what brew install hugo
does), it’s not going to leave a good taste in prospective users mouths. (I suspect that anyone who needs to install Hugo on a new box is going to face a similar problem.)
Go-html-transform should be removed in a recent commit in Hugo.
Excellent. I’ve been a bit busy at a conference to update
OK I did a bit more reading about how go packaging works, and the main issue is there’s no way of locking dependencies inside a go package import other than … drum roll … import the entire module into your app, “vendoring” it.
One alternative is to use godep, But that’s a little controversial for some people.
http://godoc.org/github.com/tools/godep
Any other opinions or approaches?
TBH I am not sure on the right way to ensure a robust source build, but personally being able to build reliably from source is a must, whether for CI testing or just plain not having your head explode with frustration. The days of trusting somebody’s unsigned binary hosted on a server are gone.
Thought I would put this finding here -
I had trouble with “brew install hugo” and realized that my Homebrew was messed up after I installed Yosemite.
This link helped me get it together -
Issue was fixed upstream in the brew
repository. I did a brew upgrade
to pull the new recipe for Hugo, then brew upgrade hugo
to install the v0.13.