bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.61k stars 528 forks source link

go install fails #291

Closed prologic closed 2 years ago

prologic commented 2 years ago

See:

$ go install github.com/bcicen/ctop@latest
go: downloading github.com/bcicen/ctop v0.7.6
go install: github.com/bcicen/ctop@latest (in github.com/bcicen/ctop@v0.7.6):
    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.

I notice there is a replace directive in the go.mod file. We should not do this. Perhaps let's upgrade the dependency or fix what issue it has upstream? Or fork it.

bcicen commented 2 years ago

replace directive has been removed in https://github.com/bcicen/ctop/commit/6dcb62f172bbb042893f81c7004c1ab361724a63

horseinthesky commented 2 years ago

@bcicen Why is it still says there are replace directives?

> go install github.com/bcicen/ctop@latest
go install: github.com/bcicen/ctop@latest (in github.com/bcicen/ctop@v0.7.7):
        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.