Skip to content

Commit 4a7df07

Browse files
author
Shlomi Noach
authored
Merge pull request #173 from github/accept-mysql-prompt-config
relaxed config scanner mode
2 parents 41d4393 + 00369d7 commit 4a7df07

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

go/base/context.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/github/gh-ost/go/sql"
1919

2020
"gopkg.in/gcfg.v1"
21+
gcfgscanner "gopkg.in/gcfg.v1/scanner"
2122
)
2223

2324
// RowsEstimateMethod is the type of row number estimation
@@ -507,6 +508,7 @@ func (this *MigrationContext) ReadConfigFile() error {
507508
return nil
508509
}
509510
gcfg.RelaxedParserMode = true
511+
gcfgscanner.RelaxedScannerMode = true
510512
if err := gcfg.ReadFileInto(&this.config, this.ConfigFile); err != nil {
511513
return err
512514
}

vendor/gopkg.in/gcfg.v1/scanner/scanner.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)