k9s icon indicating copy to clipboard operation
k9s copied to clipboard

go1.17.7 install failed

Open bighunter513 opened this issue 3 years ago • 3 comments

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/[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.

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):

  • OS: [almalinux-8]
  • K9s: [0.25.18]

bighunter513 avatar Mar 02 '22 03:03 bighunter513

The last version to work for me:

go install github.com/derailed/[email protected]

This commit introduced the replace in go.mod.

Benny-Git avatar Mar 10 '22 15:03 Benny-Git

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/[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.

Can we get this fixed at all?

prologic avatar Jun 15 '22 02:06 prologic

@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?

richardpj avatar Aug 01 '22 06:08 richardpj

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

agurinov avatar Oct 19 '22 08:10 agurinov

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...

derailed avatar Jan 31 '23 14:01 derailed