mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Move go version check into main() (#3734)
Previously the check was done in init(). This patch moves into main for unit testable friendly function.
This commit is contained in:
@@ -65,12 +65,6 @@ VERSION:
|
||||
` + Version +
|
||||
`{{ "\n"}}`
|
||||
|
||||
// init - check the environment before main starts
|
||||
func init() {
|
||||
// Check if minio was compiled using a supported version of Golang.
|
||||
checkGoVersion()
|
||||
}
|
||||
|
||||
func migrate() {
|
||||
// Migrate config file
|
||||
err := migrateConfig()
|
||||
|
||||
Reference in New Issue
Block a user