Skip to content

Potential import collision: import path should be "github.com/etcd-io/etcd", not "github.com/coreos/etcd" #212

@HappyHacker123

Description

@HappyHacker123

Description

This project shunfei/cronsun depends on github.com/etcd-io/etcd which already opted into module and redirects(or rename) its import path from "github.com/coreos/etcd" to "github.com/etcd-io/etcd" . You import github.com/etcd-io/etcd through the old path "github.com/coreos/etcd" . But when downstream module users try to get github.com/etcd-io/etcd through the indirect path "github.com/coreos/etcd" from shunfei/cronsun, they will easily get build errors:
> go get: github.com/coreos/etcd : parsing go.mod:
> module declares its path as: github.com/etcd-io/etcd
> but was required as: github.com/coreos/etcd

Solution

Update import paths. Replace all the old import paths, replace "github.com/coreos/etcd" with "github.com/etcd-io/etcd"

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