Made linter happy in cmd folder
This commit is contained in:
parent
212a04a45e
commit
5b5af7daee
7 changed files with 14 additions and 5 deletions
|
@ -48,6 +48,7 @@ import (
|
|||
"github.com/go-gitea/gitea/routers/user"
|
||||
)
|
||||
|
||||
// CmdWeb represents the available web sub-command.
|
||||
var CmdWeb = cli.Command{
|
||||
Name: "web",
|
||||
Usage: "Start Gogs web server",
|
||||
|
@ -60,6 +61,7 @@ and it takes care of all the other things for you`,
|
|||
},
|
||||
}
|
||||
|
||||
// VerChecker is a listing of required dependency versions.
|
||||
type VerChecker struct {
|
||||
ImportPath string
|
||||
Version func() string
|
||||
|
@ -99,7 +101,7 @@ func checkVersion() {
|
|||
for _, c := range checkers {
|
||||
if !version.Compare(c.Version(), c.Expected, ">=") {
|
||||
log.Fatal(4, `Dependency outdated!
|
||||
Package '%s' current version (%s) is below requirement (%s),
|
||||
Package '%s' current version (%s) is below requirement (%s),
|
||||
please use following command to update this package and recompile Gogs:
|
||||
go get -u %[1]s`, c.ImportPath, c.Version(), c.Expected)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue