go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.87k stars 283 forks source link

unrecognized import path "golang.org/x/text" #555

Closed lucasjinreal closed 3 years ago

lucasjinreal commented 3 years ago

when run hover bumpversion

hover bumpversion                                                                  master master
hover: Using engine from cache
hover: Using engine from cache
go: finding github.com/go-gl/gl latest
go: finding github.com/go-gl/glfw/v3.3/glfw latest
go get: upgrading golang.org/x/text@v0.3.2: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go get: upgrading golang.org/x/text@v0.3.3: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go get: upgrading golang.org/x/text@v0.3.0: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
verifying github.com/Xuanwo/go-locale@v1.0.0/go.mod: github.com/Xuanwo/go-locale@v1.0.0/go.mod: Get https://sum.golang.org/lookup/github.com/!xuanwo/go-locale@v1.0.0: dial tcp 172.217.24.209:443: i/o timeout

Pls help poor man in China, I set proxy doesn't work.

lucasjinreal commented 3 years ago

I can run this:

GO111MODULE=on GOPROXY=https://mirrors.aliyun.com/goproxy/ go get golang.org/x/text@v0.3.2

But I can not run this:

GO111MODULE=on GOPROXY=https://mirrors.aliyun.com/goproxy/ hover bumpversion  1 master!1 master!
hover: Using engine from cache
hover: Using engine from cache
go: finding github.com/go-gl/gl latest
go: finding github.com/go-gl/glfw/v3.3/glfw latest
go get: upgrading golang.org/x/text@v0.3.0: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go get: upgrading golang.org/x/text@v0.3.3: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
go get: upgrading golang.org/x/text@v0.3.2: unrecognized import path "golang.org/x/text" (https fetch: Get https://golang.org/x/text?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
verifying github.com/Xuanwo/go-locale@v1.0.0/go.mod: github.com/Xuanwo/go-locale@v1.0.0/go.mod: Get https://sum.golang.org/lookup/github.com/!xuanwo/go-locale@v1.0.0: dial tcp 142.250.199.81:443: i/o timeout

Enviroment variable also not work. I don't think it's proxy issue, but hover bumpversion doesn't consider usage inside China.

So, anyone could help?

provokateurin commented 3 years ago

hover bumpversion is missin the environment variable if I see it right. https://github.com/go-flutter-desktop/hover/blob/1e7668b522986374c33efe2ec2dd23f2618e6196/cmd/bumpversion.go#L56

provokateurin commented 3 years ago

I was wrong it should be passed through

lucasjinreal commented 3 years ago

@jld3103 Envrioment variable also not work.

provokateurin commented 3 years ago

I see it gets overwritten

provokateurin commented 3 years ago

Are you able to build hover yourself? If yes remove https://github.com/go-flutter-desktop/hover/blob/1e7668b522986374c33efe2ec2dd23f2618e6196/cmd/bumpversion.go#L57 then it should work. You can then create a PR

lucasjinreal commented 3 years ago

@jld3103 So, would it consider usage inside China? As somewhat reason you know.....

lucasjinreal commented 3 years ago

@jld3103 Let me have a try.

lucasjinreal commented 3 years ago

https://github.com/go-flutter-desktop/hover/pull/195 Submitted.

provokateurin commented 3 years ago

So it works?

provokateurin commented 3 years ago

You shouldn't delete the whole statement. Just that single line

lucasjinreal commented 3 years ago

@jld3103 sorry

pchampio commented 3 years ago

Fixed. Please wait of a new release of hover. Or compile hover from the source.