Skip to content

make bin/clusterctl fails with go mod errors #1169

Closed
@vincepri

Description

@vincepri

/kind bug

What steps did you take and what happened:
Run make bin/clusterctl:

go build -o bin/clusterctl sigs.k8s.io/cluster-api/cmd/clusterctl
build sigs.k8s.io/cluster-api/cmd/clusterctl: cannot load github.com/Azure/go-autorest/autorest: ambiguous import: found github.com/Azure/go-autorest/autorest in multiple modules:
	github.com/Azure/go-autorest v11.1.2+incompatible (/home/luigi/go/pkg/mod/github.com/!azure/[email protected]+incompatible/autorest)
	github.com/Azure/go-autorest/autorest v0.9.0 (/home/luigi/go/pkg/mod/github.com/!azure/go-autorest/[email protected])
Makefile:110: recipe for target 'bin/clusterctl' failed

What did you expect to happen:
Build to succeed

Anything else you would like to add:
This error was likely introduced when we started importing kubeadm provider as a depedency to this repository, which had a mistmatched version of Azure autorest library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/activeIndicates that an issue or PR is actively being worked on by a contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions