Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: ResolveTCPAddr used to accept net == ""; now doesn't #4476
The github.com/ziutek/mymysql driver calls net.ResolveTCPAddr with an empty string for the network. In Go 1.0, that worked. In Go tip, that returns net.UnkownNetworkError("") I just wasted time debugging this when I recompiled Camlistore, which happens to use ziutek/mymysql. I didn't get a nice UnkownNetworkError, either, since it had been eaten by other errors. For Go 1 compatibility reasons, should we special-case "" in ResolveTCPAddr to mean "tcp"? I would like to.