BruceWangNo1/remote-torrent

unrecognized import path "golang.org/x/sys/unix"

BruceWangNo1 opened this issue · 1 comments

Last night, I received a phone interview from a major division of a well-known domestic company. I won't name them. The interviewer said something about the project not working. I did not get what he was trying to say. And after some back-and-forth, the interviewer flipped and said this is an interview or something like that. I am sorry about all that confusion. I just did not get the specific error he was talking about. This morning, I checked this code and tried to run the code on a virtual server in an Ali-Cloud datacenter somewhere in Shenzhen. And I think I got what he meant when he said my code did not work.
After running go get github.com/brucewangno1/remote-torrent/rt command on the server. The following error message popped up:
package golang.org/x/sys/unix: unrecognized import path "golang.org/x/sys/unix" (https fetch: Get https://golang.org/x/sys/unix?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) package golang.org/x/net/proxy: unrecognized import path "golang.org/x/net/proxy" (https fetch: Get https://golang.org/x/net/proxy?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) package golang.org/x/time/rate: unrecognized import path "golang.org/x/time/rate" (https fetch: Get https://golang.org/x/time/rate?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)
The problem is due to certain network issues in China. I searched this error online and there is a post out of many which addressed this error message. The code was tested on a network free of these issues and meant to be deployed somewhere else. I should have tested this domestically.

This notice has been on display for easy reference for two weeks and now it is time to consider this matter closed.