gobuffalo / buffalo

Rapid Web Development w/ Go
http://gobuffalo.io
MIT License
8.08k stars 576 forks source link

Cockroach db dependency failing #1789

Closed mithucste30 closed 5 years ago

mithucste30 commented 5 years ago

Hi, I am a newbie to go and buffalo too,

here this evening found that newly cockroachdb dependency is failing when just trying to download the project and install its dependency, also buffalo new projectName also showing the very same problem. This happened after i completely wiped out my $GO_HOME directory.

go get -u -v github.com/gobuffalo/buffalo
github.com/gobuffalo/buffalo (download)
github.com/dustin/go-humanize (download)
github.com/fatih/color (download)
github.com/gobuffalo/nulls (download)
github.com/gofrs/uuid (download)
github.com/monoculum/formam (download)
github.com/BurntSushi/toml (download)
github.com/gobuffalo/meta (download)
github.com/gobuffalo/envy (download)
github.com/joho/godotenv (download)
github.com/rogpeppe/go-internal (download)
github.com/gobuffalo/flect (download)
github.com/karrick/godirwalk (download)
github.com/markbates/oncer (download)
github.com/sirupsen/logrus (download)
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
github.com/spf13/cobra (download)
github.com/spf13/pflag (download)
github.com/gobuffalo/github_flavored_markdown (download)
github.com/sergi/go-diff (download)
github.com/sourcegraph/annotate (download)
github.com/sourcegraph/syntaxhighlight (download)
Fetching https://golang.org/x/net/html?go-get=1
Parsing meta tags from https://golang.org/x/net/html?go-get=1 (status code 200)
get "golang.org/x/net/html": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/html?go-get=1
get "golang.org/x/net/html": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://golang.org/x/net/html/atom?go-get=1
Parsing meta tags from https://golang.org/x/net/html/atom?go-get=1 (status code 200)
get "golang.org/x/net/html/atom": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/html/atom?go-get=1
get "golang.org/x/net/html/atom": verifying non-authoritative meta tag
github.com/microcosm-cc/bluemonday (download)
github.com/chris-ramon/douceur (download)
github.com/gorilla/css (download)
github.com/gobuffalo/helpers (download)
github.com/gobuffalo/tags (download)
github.com/fatih/structs (download)
github.com/pkg/errors (download)
github.com/gobuffalo/validate (download)
github.com/serenize/snaker (download)
github.com/gobuffalo/packd (download)
github.com/gobuffalo/plush (download)
github.com/markbates/safe (download)
github.com/gobuffalo/events (download)
github.com/gobuffalo/logger (download)
Fetching https://golang.org/x/crypto/ssh/terminal?go-get=1
Parsing meta tags from https://golang.org/x/crypto/ssh/terminal?go-get=1 (status code 200)
get "golang.org/x/crypto/ssh/terminal": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ssh/terminal?go-get=1
get "golang.org/x/crypto/ssh/terminal": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
github.com/gobuffalo/pop (download)
github.com/cockroachdb/cockroach-go (download)
github.com/jackc/pgx (download)
github.com/jackc/pgconn (download)
github.com/jackc/chunkreader (download)
github.com/jackc/pgio (download)
github.com/jackc/pgpassfile (download)
github.com/jackc/pgproto3 (download)
Fetching https://golang.org/x/crypto/pbkdf2?go-get=1
Parsing meta tags from https://golang.org/x/crypto/pbkdf2?go-get=1 (status code 200)
get "golang.org/x/crypto/pbkdf2": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/pbkdf2?go-get=1
get "golang.org/x/crypto/pbkdf2": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/secure/precis?go-get=1
Parsing meta tags from https://golang.org/x/text/secure/precis?go-get=1 (status code 200)
get "golang.org/x/text/secure/precis": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/secure/precis?go-get=1
get "golang.org/x/text/secure/precis": verifying non-authoritative meta tag
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
golang.org/x/text (download)
Fetching https://golang.org/x/text/cases?go-get=1
Parsing meta tags from https://golang.org/x/text/cases?go-get=1 (status code 200)
get "golang.org/x/text/cases": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/cases?go-get=1
get "golang.org/x/text/cases": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/internal?go-get=1
Parsing meta tags from https://golang.org/x/text/internal?go-get=1 (status code 200)
get "golang.org/x/text/internal": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/internal?go-get=1
get "golang.org/x/text/internal": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/language?go-get=1
Parsing meta tags from https://golang.org/x/text/language?go-get=1 (status code 200)
get "golang.org/x/text/language": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/language?go-get=1
get "golang.org/x/text/language": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/internal/language?go-get=1
Parsing meta tags from https://golang.org/x/text/internal/language?go-get=1 (status code 200)
get "golang.org/x/text/internal/language": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/internal/language?go-get=1
get "golang.org/x/text/internal/language": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/internal/tag?go-get=1
Parsing meta tags from https://golang.org/x/text/internal/tag?go-get=1 (status code 200)
get "golang.org/x/text/internal/tag": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/internal/tag?go-get=1
get "golang.org/x/text/internal/tag": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/internal/language/compact?go-get=1
Parsing meta tags from https://golang.org/x/text/internal/language/compact?go-get=1 (status code 200)
get "golang.org/x/text/internal/language/compact": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/internal/language/compact?go-get=1
get "golang.org/x/text/internal/language/compact": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/transform?go-get=1
Parsing meta tags from https://golang.org/x/text/transform?go-get=1 (status code 200)
get "golang.org/x/text/transform": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/transform?go-get=1
get "golang.org/x/text/transform": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/norm?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/norm?go-get=1 (status code 200)
get "golang.org/x/text/unicode/norm": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/norm?go-get=1
get "golang.org/x/text/unicode/norm": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/runes?go-get=1
Parsing meta tags from https://golang.org/x/text/runes?go-get=1 (status code 200)
get "golang.org/x/text/runes": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/runes?go-get=1
get "golang.org/x/text/runes": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/secure/bidirule?go-get=1
Parsing meta tags from https://golang.org/x/text/secure/bidirule?go-get=1 (status code 200)
get "golang.org/x/text/secure/bidirule": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/secure/bidirule?go-get=1
get "golang.org/x/text/secure/bidirule": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/unicode/bidi?go-get=1
Parsing meta tags from https://golang.org/x/text/unicode/bidi?go-get=1 (status code 200)
get "golang.org/x/text/unicode/bidi": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/unicode/bidi?go-get=1
get "golang.org/x/text/unicode/bidi": verifying non-authoritative meta tag
Fetching https://golang.org/x/text/width?go-get=1
Parsing meta tags from https://golang.org/x/text/width?go-get=1 (status code 200)
get "golang.org/x/text/width": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/width?go-get=1
get "golang.org/x/text/width": verifying non-authoritative meta tag
Fetching https://golang.org/x/xerrors?go-get=1
Parsing meta tags from https://golang.org/x/xerrors?go-get=1 (status code 200)
get "golang.org/x/xerrors": found meta tag get.metaImport{Prefix:"golang.org/x/xerrors", VCS:"git", RepoRoot:"https://go.googlesource.com/xerrors"} at https://golang.org/x/xerrors?go-get=1
golang.org/x/xerrors (download)
Fetching https://golang.org/x/xerrors/internal?go-get=1
Parsing meta tags from https://golang.org/x/xerrors/internal?go-get=1 (status code 200)
get "golang.org/x/xerrors/internal": found meta tag get.metaImport{Prefix:"golang.org/x/xerrors", VCS:"git", RepoRoot:"https://go.googlesource.com/xerrors"} at https://golang.org/x/xerrors/internal?go-get=1
get "golang.org/x/xerrors/internal": verifying non-authoritative meta tag
Fetching https://golang.org/x/xerrors?go-get=1
Parsing meta tags from https://golang.org/x/xerrors?go-get=1 (status code 200)
github.com/jackc/pgtype (download)
github.com/lib/pq (download)
github.com/go-sql-driver/mysql (download)
github.com/gobuffalo/fizz (download)
github.com/kballard/go-shellquote (download)
github.com/blang/semver (download)
github.com/gobuffalo/makr (download)
github.com/markbates/inflect (download)
github.com/jmoiron/sqlx (download)
Fetching https://golang.org/x/sync/errgroup?go-get=1
Parsing meta tags from https://golang.org/x/sync/errgroup?go-get=1 (status code 200)
get "golang.org/x/sync/errgroup": found meta tag get.metaImport{Prefix:"golang.org/x/sync", VCS:"git", RepoRoot:"https://go.googlesource.com/sync"} at https://golang.org/x/sync/errgroup?go-get=1
get "golang.org/x/sync/errgroup": verifying non-authoritative meta tag
Fetching https://golang.org/x/sync?go-get=1
Parsing meta tags from https://golang.org/x/sync?go-get=1 (status code 200)
golang.org/x/sync (download)
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag get.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
github.com/gorilla/mux (download)
github.com/gorilla/sessions (download)
github.com/gorilla/securecookie (download)
github.com/markbates/grift (download)
github.com/markbates/refresh (download)
github.com/fsnotify/fsnotify (download)
github.com/gobuffalo/genny (download)
github.com/mitchellh/go-homedir (download)
github.com/markbates/sigtx (download)
github.com/gobuffalo/buffalo/internal/defaults
github.com/gobuffalo/buffalo/internal/takeon/github.com/markbates/errx
github.com/dustin/go-humanize
github.com/BurntSushi/toml
github.com/gobuffalo/buffalo/internal/httpx
github.com/karrick/godirwalk
github.com/markbates/oncer
github.com/spf13/pflag
github.com/gobuffalo/buffalo/internal/takeon/github.com/gobuffalo/syncx
github.com/gobuffalo/buffalo/runtime
github.com/gobuffalo/buffalo/servers
github.com/markbates/safe
github.com/gobuffalo/events/internal/mapi
github.com/gobuffalo/events/internal/safe
github.com/gobuffalo/events
github.com/cockroachdb/cockroach-go/crdb
# github.com/cockroachdb/cockroach-go/crdb
../../cockroachdb/cockroach-go/crdb/tx.go:146:7: undefined: pgx.PgError
../../cockroachdb/cockroach-go/crdb/tx.go:147:11: t.Code undefined (type error has no field or method Code)
github.com/gorilla/securecookie
github.com/markbates/grift/grift
github.com/markbates/refresh/filenotify
github.com/mitchellh/go-homedir
github.com/gorilla/sessions
github.com/markbates/sigtx
github.com/markbates/refresh/refresh/web
github.com/spf13/cobra

Buffalo version v0.14.10 Go version: go1.12.9 linux/amd64 OS: Ubuntu 19.04

tomislavmitic2012 commented 5 years ago

I can confirm this as an issue as well... It would be nice to have a workaround for this

Buffalo version v4.7.2 Go version: golang:1.13-alpine (docker) OS: Docker for mac

tomislavmitic2012 commented 5 years ago

this compilation error is realted to this issue (https://github.com/cockroachdb/cockroach-go/issues/54)

andreimatei commented 5 years ago

should be fixed upstream in cockroach-go now

mithucste30 commented 5 years ago

@andreimatei thanks. I am closing this issue.