Skip to content

go mod tidy error due to github.com/imdario/mergo import #9294

Description

@blkperl

Description

Observed Behavior:

The go.mod uses dario.cat/mergo but this project imports github.com/imdario/mergo which causes go to throw an error.

go mod tidy  
go: <redacted internal package name> imports
	github.com/aws/karpenter-provider-aws/pkg/apis/v1 tested by
	github.com/aws/karpenter-provider-aws/pkg/apis/v1.test imports
	github.com/imdario/mergo: github.com/imdario/mergo@v1.0.2: parsing go.mod:
	module declares its path as: dario.cat/mergo
	        but was required as: github.com/imdario/mergo

Expected Behavior:

go.mod tidy should not error

The workaround is to add a go mod replace in projects consuming this dependency. https://github.com/darccio/mergo#100

replace github.com/imdario/mergo => dario.cat/mergo v1.0.1

Reproduction Steps (Please include YAML):

Versions:

  • Chart Version:
  • Kubernetes Version (kubectl version):
  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filetriage/acceptedIndicates that the issue has been accepted as a valid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions