mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
* log: remove use of description paramter in Scoped * temporarily point to sglog branch * bazel configure + gazelle * remove additional use of description param * use latest versions of zoekt,log,mountinfo * go.mod
27 lines
683 B
Go
27 lines
683 B
Go
package main
|
|
|
|
import (
|
|
"github.com/sourcegraph/log"
|
|
|
|
"github.com/sourcegraph/sourcegraph/cmd/migrator/shared"
|
|
"github.com/sourcegraph/sourcegraph/internal/env"
|
|
"github.com/sourcegraph/sourcegraph/internal/oobmigration/migrations/register"
|
|
"github.com/sourcegraph/sourcegraph/internal/sanitycheck"
|
|
"github.com/sourcegraph/sourcegraph/internal/version"
|
|
)
|
|
|
|
func main() {
|
|
sanitycheck.Pass()
|
|
liblog := log.Init(log.Resource{
|
|
Name: env.MyName,
|
|
Version: version.Version(),
|
|
})
|
|
defer liblog.Sync()
|
|
|
|
logger := log.Scoped("migrator")
|
|
|
|
if err := shared.Start(logger, register.RegisterEnterpriseMigratorsUsingConfAndStoreFactory); err != nil {
|
|
logger.Fatal(err.Error())
|
|
}
|
|
}
|