|
|
|
@ -61,10 +61,14 @@ func checkVersion() {
|
|
|
|
|
log.Fatal(4, "Binary and template file version does not match, did you forget to recompile?")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Macaron.
|
|
|
|
|
// Check dependency version.
|
|
|
|
|
macaronVer := git.MustParseVersion(strings.Join(strings.Split(macaron.Version(), ".")[:3], "."))
|
|
|
|
|
if macaronVer.LessThan(git.MustParseVersion("0.1.8")) {
|
|
|
|
|
log.Fatal(4, "Macaron version does not match, did you forget to update?(github.com/Unknwon/macaron)")
|
|
|
|
|
if macaronVer.LessThan(git.MustParseVersion("0.2.0")) {
|
|
|
|
|
log.Fatal(4, "Macaron version is too old, did you forget to update?(github.com/Unknwon/macaron)")
|
|
|
|
|
}
|
|
|
|
|
i18nVer := git.MustParseVersion(i18n.Version())
|
|
|
|
|
if i18nVer.LessThan(git.MustParseVersion("0.0.1")) {
|
|
|
|
|
log.Fatal(4, "i18n version is too old, did you forget to update?(github.com/macaron-contrib/i18n)")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|