-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add go.mod #947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Nothing. go modules are for dependency management. For now, we don't have any. |
@julienschmidt the Line 17 in 8f4b98d
|
The file has a build flag: We're certainly not going to start forcing everyone to fetch a copy of couldsql. |
It is weird. The |
@julienschmidt is it really needed to shift the the cloudsql registration? Lines 21 to 24 in 8f4b98d
|
"Starting October 1, 2019, new deployments using this version will not be available." -- https://cloud.google.com/appengine/docs/standard/go/ We can remove appengine.go, at least from 2019-10-01. |
But it is fetched whenever someone runs // File: main.go
package main
import "database/sql"
import _ "github.com/go-sql-driver/mysql"
func main() {
_, _ = sql.Open("mysql", "user:password@/dbname")
} $ go clean -modcache
$ go mod init example.com
$ go mod tidy
go: downloading github.com/go-sql-driver/mysql v1.4.1
go: extracting github.com/go-sql-driver/mysql v1.4.1
go: downloading google.golang.org/appengine v1.6.2
go: extracting google.golang.org/appengine v1.6.2
$ cat go.mod
module example.com
go 1.13
require (
github.com/go-sql-driver/mysql v1.4.1
google.golang.org/appengine v1.6.2 // indirect
)
$ ls $GOPATH/pkg/mod/google.golang.org/[email protected]/
aetest datastore LICENSE search
appengine.go delay log socket
... |
@julienschmidt Should support go.mod |
I will remove |
My plan would be to move the dialer into a separate package ( |
Also see https://github.com/go-sql-driver/mysql/blob/go-mod/go.mod |
I don't think it is worth enough:
|
Issue description
I have not used Go mod yet.
How should we do in v1.5 for better go mod support?
The text was updated successfully, but these errors were encountered: