Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot install k3d v5.5.1 using Go 1.22.x due to replace directive #1468

Closed
harshanarayana opened this issue Jul 14, 2024 · 0 comments · Fixed by #1469
Closed

[BUG] Cannot install k3d v5.5.1 using Go 1.22.x due to replace directive #1468

harshanarayana opened this issue Jul 14, 2024 · 0 comments · Fixed by #1469
Labels
bug Something isn't working

Comments

@harshanarayana
Copy link
Contributor

What did you do

Cannot install k3d via go install command:

❯ go version
go version go1.22.4 darwin/arm64
❯ go install github.com/k3d-io/k3d/[email protected]
go: github.com/k3d-io/k3d/[email protected] (in github.com/k3d-io/k3d/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.
❯ go install github.com/k3d-io/k3d/[email protected]
go: github.com/k3d-io/k3d/[email protected] (in github.com/k3d-io/k3d/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Seems like changes done under 7de36e8 is breaking the go install workflows.

We use the go install to install tools under the e2e-framework. I am trying to enable support for k3d under that and it breaks while installing the module.

xref: kubernetes-sigs/e2e-framework#441

  • How was the cluster created?

    • NA
  • What did you do afterwards?

    • k3d commands?
    • docker commands?
    • OS operations (e.g. shutdown/reboot)?

What did you expect to happen

Should be able to install k3d using go install as documented.

Screenshots or terminal output

❯ go version
go version go1.22.4 darwin/arm64
❯ go install github.com/k3d-io/k3d/[email protected]
go: github.com/k3d-io/k3d/[email protected] (in github.com/k3d-io/k3d/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.
❯ go install github.com/k3d-io/k3d/[email protected]
go: github.com/k3d-io/k3d/[email protected] (in github.com/k3d-io/k3d/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Which OS & Architecture

NA

Which version of k3d

NA

Which version of docker

NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant