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

Remove replace directives in go.mod so go install works #62

Open
howardjohn opened this issue Apr 25, 2021 · 2 comments
Open

Remove replace directives in go.mod so go install works #62

howardjohn opened this issue Apr 25, 2021 · 2 comments

Comments

@howardjohn
Copy link

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

@howardjohn
Copy link
Author

Ah I realized now there is an import on kubernetes/kubernetes which may not be drop-able since we need the defaulting logic

@itaysk
Copy link
Owner

itaysk commented Apr 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants