zap: Unable to install

I am getting error though installation:

go get -u go.uber.org/zap    
package go.uber.org/zap: unrecognized import path "go.uber.org/zap" (parse https://go.uber.org/zap?go-get=1: no go-import meta tags ())

Seems you don’t provide meta on go.uber.org/zap

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 5
  • Comments: 33 (5 by maintainers)

Most upvoted comments

export GOPROXY=https://proxy.golang.org This may fix your problems

I’m unable to reproduce this, unfortunately. I’ll file an issue with the vanity import path project we’re using.

@m1ome As a workaround, you can install this without using go get.

mkdir -p $GOPATH/src/go.uber.org
cd $GOPATH/src/go.uber.org
git clone https://github.com/uber-go/zap.git

I’m getting the same error when using dep but the response via curl seems ok 🤔 Getting it since today.

init failed: unable to determine direct dependencies: unable to deduce repository and source type for "go.uber.org/zap": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://go.uber.org/zap?go-get=1": Get http://go.uber.org/zap?go-get=1: dial tcp: i/o timeout
 /m/c/U/f/go/s/g/k/roomsync  curl https://go.uber.org/zap                                                                                                                                                                                                                                   ✔  17:14:49

<!DOCTYPE html>
<html>
    <head>
        <meta name="go-import" content="go.uber.org/zap git https://github.com/uber-go/zap">
        <meta name="go-source" content="go.uber.org/zap https://github.com/uber-go/zap https://github.com/uber-go/zap/tree/master{/dir} https://github.com/uber-go/zap/tree/master{/dir}/{file}#L{line}">
        <meta http-equiv="refresh" content="0; url=https://godoc.org/go.uber.org/zap">
    </head>
    <body>
        Nothing to see here. Please <a href="https://godoc.org/go.uber.org/zap">move along</a>.
    </body>
</html>