dive icon indicating copy to clipboard operation
dive copied to clipboard

Critical Failure Because of Replace Directives

Open rwxrob opened this issue 3 years ago • 4 comments

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

rwxrob avatar May 20 '21 21:05 rwxrob

confirming this is still present

nektro avatar Apr 18 '22 23:04 nektro

Bump. Getting the same issue.

whirledsol avatar May 03 '22 17:05 whirledsol

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

thediveo avatar Sep 13 '22 15:09 thediveo

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

alinkedd avatar Jan 15 '24 19:01 alinkedd