DEV Community

Muhammad Siraj
Muhammad Siraj

Posted on

Getting this error while downloading my sql package in golang

PS C:\Users\mshah\go\Programforgo> go get github.com/go-sql-driver/mysql
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/go-sql-driver/mysql: exec: "git": executable file not found in %PATH%
PS C:\Users\mshah\go\Programforgo> go get -u github.com/go-sql-driver/mysql
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/go-sql-driver/mysql: exec: "git": executable file not found in %PATH%
PS C:\Users\mshah\go\Programforgo> go get -u github.com/go-sql-driver/mysql
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/go-sql-driver/mysql: exec: "git": executable file not found in %PATH%
PS C:\Users\mshah\go\Programforgo> go get github.com/go-sql-driver/mysql

go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/go-sql-driver/mysql: exec: "git": executable file not found in %PATH%
PS C:\Users\mshah\go\Programforgo>

Top comments (3)

Collapse
 
muhammad_siraj_65a96aca04 profile image
Muhammad Siraj

Also, I have added the path to the environmental variable list. But still its showing this

Collapse
 
muhammad_siraj_65a96aca04 profile image
Muhammad Siraj

tried this but know getting another error. Its been hours i have been trying but still getting this error
: go install: github.com/go-sql-driver/mysql@latest: module github.com/go-sql-driver/mysql: Get "goproxy.cn/github.com/go-sql-drive... dial tcp:
lookup goproxy.cn: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.

 
muhammad_siraj_65a96aca04 profile image
Muhammad Siraj

Thank you so much. The error is resolved. I used wifi and it get downloaded.