之前下载go 的mysql包时,是如下方式,

$ go get github.com/Go-SQL-Driver/MySQL

不过现在这么执行会报错误如下:

Username for 'https://github.com': ghj1976
Password for 'https://ghj1976@github.com':
# cd .; git clone https://github.com/Go-SQL-Driver/MySQL /Users/cybercare/go/src/github.com/Go-SQL-Driver/MySQL
Cloning into '/Users/cybercare/go/src/github.com/Go-SQL-Driver/MySQL'...
fatal: https://github.com/Go-SQL-Driver/MySQL/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
package github.com/Go-SQL-Driver/MySQL: exit status 128

 

go get 下载方式改成小写后,则没有任何问题,直接就可以了。
go get github.com/go-sql-driver/mysql

这个包的Readme中现在也修改成用小写方式go get 了。

https://github.com/Go-SQL-Driver/MySQL#readme

http://www.cnblogs.com/ghj1976/archive/2013/03/18/2965357.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-06-01
  • 2021-05-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-15
  • 2021-08-23
  • 2021-12-23
  • 2021-12-23
  • 2021-10-01
  • 2021-09-30
相关资源
相似解决方案