Skip to content

go mod tidy fails #1346

@zborsos

Description

@zborsos

Describe the Bug
go mod tidy command fails like :
go: bookigs/dbmodels imports
github.com/golang-migrate/migrate/v4/database/postgres tested by
github.com/golang-migrate/migrate/v4/database/postgres.test imports
github.com/dhui/dktest imports
github.com/docker/docker/api/types/container: github.com/docker/docker/api@v1.52.0: parsing go.mod:
module declares its path as: github.com/moby/moby/api
but was required as: github.com/docker/docker/api

Steps to Reproduce
Steps to reproduce the behavior:

  1. import the migration module
  2. I ran go mod tidy
  3. See error
    go: bookigs/dbmodels imports
    github.com/golang-migrate/migrate/v4/database/postgres tested by
    github.com/golang-migrate/migrate/v4/database/postgres.test imports
    github.com/dhui/dktest imports
    github.com/docker/docker/api/types/container: github.com/docker/docker/api@v1.52.0: parsing go.mod:
    module declares its path as: github.com/moby/moby/api
    but was required as: github.com/docker/docker/api

Expected Behavior
I expect to have resolved the dependencies correctly since
github.com/docker/docker/api
was moved to
github.com/moby/moby/api
you guys in your code should take care of the correct imports

Migrate Version
e.g. v4
Obtained by running: go mod tidy

Loaded Source Drivers
e.g. s3, github, go-bindata, gcs, file
Obtained by running: migrate -help

Loaded Database Drivers
postgres
Obtained by running: migrate -help

Go Version
go version go1.24.4 windows/amd64
Obtained by running: go version

Stacktrace
Please provide if available

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions