Skip to content

Install fail with Go 1.15.9: mvdan.cc/sh/v3/interp/api.go:313:10: undefined: io.Discard #102

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

Open
mbideau opened this issue Nov 11, 2021 · 0 comments

Comments

@mbideau
Copy link

mbideau commented Nov 11, 2021

go version output:

❯ go version
go version go1.15.9 linux/amd64

What happened: installation failed

What you expected to happen: installation succeed

How to reproduce it (as minimally and precisely as possible):

❯ (cd $(mktemp -d) && pwd && go get github.com/bwplotka/bingo)
/tmp/tmp.lsIlWXNRQs
# mvdan.cc/sh/v3/interp
/home/michael/go/src/mvdan.cc/sh/v3/interp/api.go:313:10: undefined: io.Discard
/home/michael/go/src/mvdan.cc/sh/v3/interp/api.go:317:10: undefined: io.Discard

Same with go install github.com/bwplotka/bingo

But it worked with :

❯ (cd $(mktemp -d) && pwd && go mod init _ && go get github.com/bwplotka/bingo)
/tmp/tmp.cVwENdlVBh
go: creating new go.mod: module _
go: downloading github.com/bwplotka/bingo v0.5.1
go: github.com/bwplotka/bingo upgrade => v0.5.1
go: downloading github.com/efficientgo/tools/core v0.0.0-20210201220623-8118984754c2
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading mvdan.cc/sh/v3 v3.2.4
go: downloading github.com/oklog/run v1.1.0
go: downloading golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898
go: downloading golang.org/x/sys v0.0.0-20201029080932-201ba4db2418
go: downloading golang.org/x/term v0.0.0-20191110171634-ad39bd3f0407
❯ ll $(go env GOPATH)/bin/bingo
-rwxr-xr-x 1 michael michael 4,8M 11 nov.  18:40 /home/michael/go/bin/bingo

Anything else we need to know:

I tried to clean up and start from a fresh GOPATH: same result (with the GOPATH method).

Thanks in advance for making this program, I hope I would save me a lot of pain managing tools modules.

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

1 participant