./gogs.go:31:6: cannot use cmd.Web (type "github.com/gogs/gogs/vendor/github.com/urfave/cli".Command) as type "github.com/urfave/cli".Command in array or slice literal
原因:在go目录下,urfave/cli在两个地方有,一个是vender目录,一个是github目录,将vender目录下的urfave删除后,问题解决。
./gogs.go:31:6: cannot use cmd.Web (type "github.com/gogs/gogs/vendor/github.com/urfave/cli".Command) as type "github.com/urfave/cli".Command in array or slice literal
原因:在go目录下,urfave/cli在两个地方有,一个是vender目录,一个是github目录,将vender目录下的urfave删除后,问题解决。