-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Incompatibility in the URL parser with go 1.12.8 and github.com/go-sql-driver/mysql #264
Comments
ditto |
Change schemeFromURL to just split the url by :// to find the scheme. It's not required to parse the whole URL. MySQL DSNs aren't valid URLs. Fixes golang-migrate#264
Reported the change in behavior in Golang (to confirm it was intentional); golang/go#33646. I'll quote the response here;
|
…ql (#265) * Fix in the URL parser with go 1.12.8 and github.com/go-sql-driver/mysql Change schemeFromURL to just split the url by :// to find the scheme. It's not required to parse the whole URL. MySQL DSNs aren't valid URLs. Fixes #264 * The mysql driver itself also used net/url.Parse * Also fix TestPasswordUnencodedReservedURLChars * Keep backwards compatibility with url encoded username and passwords * Fix suggestions * Reuse old function names
We won't be able to cut a new release until the builds are fixed: #254 |
@dhui what about now? the issue does have impact to my team's software |
Unfortunately, we don't have a centralized communications channel/procedure for issues and the latest status can only be gleaned from looking at the latest comments on related issues and PRs... Current status: If you believe that the fixes in master are sufficient for your needs, go ahead and use the master branch. If you'd like a more stable release, you'll need to wait for the next release. You can always use master for now and cut back to the next release when it's available. @dnldaniel On a related note, if |
Fixed in v4.6.0 |
Describe the Bug
go-sql-driver has a DSN format that the go-1.12.8 does not consider as a valid URL.
Since the migrate tool parses the DSN before passing it on to the go-sql-driver, it leads to an error with the connection string.
Steps to Reproduce
Steps to reproduce the behavior:
Expected Behavior
Migrations should've run successfully.
Migrate Version
e.g. v4.5.0
Loaded Source Drivers
file
Loaded Database Drivers
stub, mysql
Go Version
go version go1.12.8 linux/amd64
Stacktrace
NA
The text was updated successfully, but these errors were encountered: