derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
27.16k stars 1.7k forks source link

go1.17.7 install failed #1484

Open bighunter513 opened 2 years ago

bighunter513 commented 2 years ago

Describe the bug when I use go install github.com/derailed/k9s@latest it failed with: go install: github.com/derailed/k9s@latest (in github.com/derailed/k9s@v0.25.18): 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.

To Reproduce Steps to reproduce the behavior:

  1. install go1.17.7 on
  2. go install github.com/derailed/k9s@latest

Expected behavior install ok

Versions (please complete the following information):

Benny-Git commented 2 years ago

The last version to work for me:

go install github.com/derailed/k9s@v0.25.2

This commit introduced the replace in go.mod.

prologic commented 2 years ago

Installing the latest version from the main/master branch fails:

$ GOPROXY="" go install github.com/derailed/k9s@latest
go: downloading github.com/derailed/k9s v0.25.18
go install: github.com/derailed/k9s@latest (in github.com/derailed/k9s@v0.25.18):
    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.

Can we get this fixed at all?

richardpj commented 2 years ago

@derailed is the replace in the go.mod file 100% necessary?

Would a comment and updating the requires work? Could a workspace file solve this?

agurinov commented 2 years ago

Last successful version to install via go install was v0.26.2

The newer versions started to include replace directive replace github.com/gdamore/tcell/v2 => github.com/derailed/tcell/v2 v2.3.1-rc.2

derailed commented 1 year ago

Thank you all for piping in!! This is tricky because of the deltas in the upstream deps hence workspace sadly won't solve it for us ;(. I think I'll have a fix in the next drop...