golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
14.99k stars 1.38k forks source link

go mod: mailformed record data #392

Open k0nsta opened 4 years ago

k0nsta commented 4 years ago

Describe the Bug I would like to use migrate as a package with postgres and have error when I try to get it.

Steps to Reproduce Steps to reproduce the behavior:

  1. Import:

    import ( 
    "github.com/golang-migrate/migrate/v4"
    "github.com/golang-migrate/migrate/v4/database/postgres"
    _ "github.com/golang-migrate/migrate/v4/source/file"
    )
    ....
  2. Run go mod tidy

  3. Error:

    go: finding module for package github.com/golang-migrate/migrate/v4
    go: finding module for package github.com/golang-migrate/migrate/v4/source/github
    go: finding module for package github.com/golang-migrate/migrate/v4/database/postgres
    go: finding module for package github.com/golang-migrate/migrate/v4/source/file
    go: found github.com/golang-migrate/migrate/v4 in github.com/golang-migrate/migrate/v4 v4.11.0
    go: github.com/golang-migrate/migrate/v4@v4.11.0 requires
        github.com/neo4j/neo4j-go-driver@v1.7.4/go.mod: verifying module: github.com/neo4j/neo4j-go-driver@v1.7.4/go.mod: malformed record data

Expected Behavior Collect module migrate and use into my code.

Migrate Version

migrate --version
v4.9.1

Loaded Source Drivers file

Go Version go1.14 darwin/amd64

Additional context

GOPROXY="https://proxy.golang.org,direct"

Thank you in advance for you help!

dhui commented 4 years ago

Are you still encountering this issue? I'm unable to reproduce locally or in docker, so this may be a sporadic or regional issue.

k0nsta commented 4 years ago

I'm sorry, I had to check in different environments before create issue. I can't reproduce in docker, looks like this is my local issue. Frankly, I haven't still figure out how to solve the issue. I have tried connect via different region (VPN), off GONOPROXY, GONOSUMDB, GOPRIVATE, but no effect.