wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
46.69k stars 1.78k forks source link

Critical Failure Because of Replace Directives #355

Open rwxrob opened 3 years ago

rwxrob commented 3 years ago

Installation fails because of incorrect usage of the replace directive. for go 1.16.4.

go install github.com/wagoodman/dive@latest: github.com/wagoodman/dive@v0.10.0
        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.
r
nektro commented 2 years ago

confirming this is still present

whirledsol commented 2 years ago

Bump. Getting the same issue.

thediveo commented 2 years ago

Bump^2 ... still need to git clone and then go install ..

alinkedd commented 10 months ago

Bump^3. Still the same.

Common workaround is still:

git clone https://github.com/wagoodman/dive
cd dive/
go install .

The weird thing is, at first glance, I didn't find the go.mod files with replace directive among the deps, but I found a few projects (of last or referenced version) without go.mod file at all, though I don't know if that can trigger that kind of error.


Go's main discussion: https://github.com/golang/go/issues/44840