tldr icon indicating copy to clipboard operation
tldr copied to clipboard

Compilation error

Open gustavo-hms opened this issue 4 years ago • 2 comments

Hi! This project seems to present an interesting usability approach to tldr clients. Congrats!

Unfortunately, I didn't have the opportunity to test it, since I couldn't manage to compile it. It seems to be an error on one of your dependencies. The output of go get github.com/isacikgoz/tldr/cmd/tldr:

# github.com/c-bata/go-prompt/internal/term
go/src/github.com/c-bata/go-prompt/internal/term/raw.go:27:75: cannot use (*syscall.Termios)(&n) (type *syscall.Termios) as type *unix.Termios in argument to termios.Tcsetattr
go/src/github.com/c-bata/go-prompt/internal/term/term.go:22:40: cannot use &saveTermios (type *syscall.Termios) as type *unix.Termios in argument to termios.Tcgetattr
go/src/github.com/c-bata/go-prompt/internal/term/term.go:33:68: cannot use &o (type *syscall.Termios) as type *unix.Termios in argument to termios.Tcsetattr

gustavo-hms avatar Sep 17 '20 12:09 gustavo-hms

Hey @gustavo-hms, thanks for the feedback I will be looking into this. Can you provide me your system information? OS and architecture would be sufficient. Also, I updated the go-prompt dependency, maybe it could be fixed. But keep in mind that I removed Windows support for v1.0 for now.

isacikgoz avatar Sep 21 '20 18:09 isacikgoz

I'm on Ubuntu Linux 20.04 64 bits.

Well, I've tried once again, running go get -u github.com/isacikgoz/tldr/cmd/tldr. This time, I've got a different error:

code in directory /go/src/github.com/go-git/go-billy/osfs expects import "github.com/go-git/go-billy/v5/osfs"

gustavo-hms avatar Sep 21 '20 20:09 gustavo-hms