justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

Error info. by go1.17 #324

Closed wwdws1 closed 2 years ago

wwdws1 commented 3 years ago

When I am using the command go get -u github.com/justjanne/powerline-go to get update with go 1.17, the information was given at below:

$ go get -u github.com/justjanne/powerline-go
go: downloading golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
go: downloading golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/shirou/gopsutil v3.21.7+incompatible
go: downloading github.com/StackExchange/wmi v1.2.1
go get: installing executables with 'go get' in module mode is deprecated.
        Use 'go install pkg@version' instead.
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

I think there is something abnormal, but I do not understand. The OS info.: wsl2 Ubuntu20.04 Thank you again!

dswij commented 3 years ago

This works fine on Go 1.16.6. Seems like this happens because of 1.17. 😃

@wwdws1 can you try using go install github.com/justjanne/powerline-go@latest instead?

Might need to update the README and CI soon.

wwdws1 commented 3 years ago

When I tried using the go install github.com/justjanne/powerline-go@latest, there is not any output information for the installed shell. For the new shell, it was successfully installed and the output information is:

$ go install github.com/justjanne/powerline-go@latest
go: downloading github.com/justjanne/powerline-go v1.21.0
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
go: downloading github.com/shirou/gopsutil v3.20.12+incompatible
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading golang.org/x/sys v0.0.0-20210105210732-16f7687f5001
go: downloading golang.org/x/text v0.3.4
go: downloading golang.org/x/term v0.0.0-20201117132131-f5c789dd3221

There is no warning and I think the new command works well!😀 Well done! Thanks again!👍

dswij commented 3 years ago

Should mean that it's installed correctly now 🙂