You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in coderzh/gohugo.org#1 by a friend of mine in China, go get -v github.com/spf13/hugo fails to complete because golang.org, hence golang.org/x/text/transform and golang.org/x/text/unicode/norm used in hugo/helpers/path.go, are blocked in China. (Why? Beats me. Perhaps it is because golang.org is hosted on Google servers, and most Google servers are blocked in China nowadays?)
Using an overseas VPN is a way to circumvent the blockage, but thankfully, there is another way for Chinese netizens who do not have access to an overseas VPN, as suggested by Lars Seipel:
Repeat the latter for all x repos. Do this once when setting up a new
machine for Go development, then just git pull for updates. It's maybe
not as nice as 'go get' but at least you don't need to change import
paths in other packages depending on the x repos.
And the good news? My friend from China tested it and reported: "This method works; a very good solution indeed."
So yes, this is a note-to-self to follow up by documenting it and probably writing a small bash script and/or MS-DOS / Windows batch file to automate the whole process, both the initial fetch and subsequent updating.
Cheers,
Anthony
The text was updated successfully, but these errors were encountered:
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't.
If this is a bug and you can still reproduce this error on the latest release or the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
As reported in coderzh/gohugo.org#1 by a friend of mine in China,
go get -v github.com/spf13/hugo
fails to complete because golang.org, hencegolang.org/x/text/transform
andgolang.org/x/text/unicode/norm
used inhugo/helpers/path.go
, are blocked in China. (Why? Beats me. Perhaps it is because golang.org is hosted on Google servers, and most Google servers are blocked in China nowadays?)Using an overseas VPN is a way to circumvent the blockage, but thankfully, there is another way for Chinese netizens who do not have access to an overseas VPN, as suggested by Lars Seipel:
(from http://grokbase.com/t/gg/golang-nuts/152cgxd8jh/go-nuts-golang-org-is-blocked-in-china)
And the good news? My friend from China tested it and reported: "This method works; a very good solution indeed."
So yes, this is a note-to-self to follow up by documenting it and probably writing a small bash script and/or MS-DOS / Windows batch file to automate the whole process, both the initial fetch and subsequent updating.
Cheers,
Anthony
The text was updated successfully, but these errors were encountered: