Closed sotayamashita closed 9 years ago
I'm also seeing this issue!
Also reported upstream: spf13/hugo#795.
I can't repro this. @fbartho, can I get your build logs please?
I don't think this is a Hugo issue, as runtime/pprof is supposed to be part of Go core.
go get
runs perfectly on my Debian GNU/Linux system, with the golang
, golang-src
etc. packages that are part of the official Debian repository. While I don't have brew, if I were to do this:
mv /usr/share/go/src/pkg/runtime/pprof /usr/share/go/src/pkg/runtime/pprof-bye
then I would see the very same error:
$ go get -v github.com/spf13/hugo
import "runtime/pprof": import path doesn't contain a hostname
package runtime/pprof: unrecognized import path "runtime/pprof"
or, with the -u
flag:
$ go get -v -u github.com/spf13/hugo
github.com/spf13/hugo (download)
bitbucket.org/kardianos/osext (download)
bitbucket.org/pkg/inflect (download)
github.com/BurntSushi/toml (download)
github.com/PuerkitoBio/purell (download)
github.com/armon/consul-api (download)
github.com/coreos/go-etcd (download)
github.com/dchest/cssmin (download)
github.com/eknkc/amber (download)
github.com/gorilla/websocket (download)
github.com/kr/pretty (download)
github.com/kr/text (download)
github.com/mitchellh/mapstructure (download)
github.com/russross/blackfriday (download)
github.com/shurcooL/sanitized_anchor_name (download)
github.com/spf13/afero (download)
github.com/spf13/cast (download)
github.com/spf13/jwalterweatherman (download)
github.com/spf13/cobra (download)
github.com/spf13/pflag (download)
github.com/spf13/fsync (download)
github.com/spf13/viper (download)
github.com/xordataexchange/crypt (download)
golang.org/x/crypto (download)
gopkg.in/yaml.v1 (download)
github.com/yosssi/ace (download)
github.com/spf13/nitro (download)
gopkg.in/fsnotify.v0 (download)
import "runtime/pprof": import path doesn't contain a hostname
package github.com/spf13/hugo
imports bitbucket.org/kardianos/osext
imports bitbucket.org/pkg/inflect
imports github.com/BurntSushi/toml
imports github.com/PuerkitoBio/purell
imports github.com/armon/consul-api
imports github.com/coreos/go-etcd/etcd
imports github.com/dchest/cssmin
imports github.com/eknkc/amber
imports github.com/eknkc/amber/parser
imports github.com/gorilla/websocket
imports github.com/kr/pretty
imports github.com/kr/text
imports github.com/mitchellh/mapstructure
imports github.com/russross/blackfriday
imports github.com/shurcooL/sanitized_anchor_name
imports github.com/spf13/afero
imports github.com/spf13/cast
imports github.com/spf13/jwalterweatherman
imports github.com/spf13/cobra
imports github.com/spf13/pflag
imports github.com/spf13/fsync
imports github.com/spf13/hugo/commands
imports github.com/spf13/hugo/create
imports github.com/spf13/hugo/helpers
imports github.com/spf13/viper
imports github.com/xordataexchange/crypt/backend
imports github.com/xordataexchange/crypt/backend/consul
imports github.com/xordataexchange/crypt/backend/etcd
imports github.com/xordataexchange/crypt/config
imports github.com/xordataexchange/crypt/encoding/secconf
imports golang.org/x/crypto/cast5
imports golang.org/x/crypto/openpgp
imports golang.org/x/crypto/openpgp/armor
imports golang.org/x/crypto/openpgp/errors
imports golang.org/x/crypto/openpgp/elgamal
imports golang.org/x/crypto/openpgp/packet
imports golang.org/x/crypto/openpgp/s2k
imports gopkg.in/yaml.v1
imports github.com/spf13/hugo/hugofs
imports github.com/spf13/hugo/hugolib
imports github.com/spf13/hugo/parser
imports github.com/spf13/hugo/source
imports github.com/spf13/hugo/target
imports github.com/spf13/hugo/tpl
imports github.com/yosssi/ace
imports github.com/spf13/hugo/transform
imports github.com/spf13/nitro
imports github.com/spf13/hugo/livereload
imports github.com/spf13/hugo/utils
imports github.com/spf13/hugo/watcher
imports gopkg.in/fsnotify.v0
imports runtime/pprof: unrecognized import path "runtime/pprof"
Perhaps something is missing in the Go installation? How about trying this?
$ brew uninstall go
$ brew install go
It was not homebrew and hugo issue. it's just my go configuration.
I got error below:
Here is my gist log: https://gist.github.com/anonymous/fb0243763176b8d1baeb