Remove `replace` directives in go.mod so `go install` works
$ go install github.com/itaysk/kubectl-neat@latest
go install github.com/itaysk/kubectl-neat@latest: github.com/itaysk/[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.
This can be fixed by removing the replaces in go.mod. I believe these are not needed anymore, or at least they will not be if the k8s client libraries are updated?
Ah I realized now there is an import on kubernetes/kubernetes which may not be drop-able since we need the defaulting logic
Ah I realized now there is an import on kubernetes/kubernetes which may not be drop-able since we need the defaulting logic
when I wrote kubectl-neat this was necessary, since of the way kubernetes' components were versioned and released. I don't know if there's a better solution today. I suspect there isn't but I would be happy to learn otherwise.