megacheck抱怨两个供应商都存在一个包?

时间:2018-04-06 10:11:33

标签: go linter

git.domain.com/a/b/main.go:

package tlsgenerate

import (
    "github.com/spf13/cobra"
)

var CobraCommand = &cobra.Command{

}

git.domain.com/x/y/tlsgenerate/cmd.go:

github.com/spf13/cobra

gometalinter说:

  

警告:不能使用tlsgenerate.CobraCommand(类型的变量   * git.domain.com / x / y / vendor / github.com / spf13 / cobra.Command)as * git.domain.com / a / b / vendor / github.com / spf13 / cobra.Command value in argument to rootCmd.AddCommand(megacheck)

我们使用dep来管理依赖关系。 a/b/vendorx/y/vendor都存在Dim strFileName As String = Path.GetFileName(FName).Replace(" ", "%20") Response.ContentType = "application/octet-stream" ' FLaw identified in this line Response.AddHeader("Content-Disposition", ("attachment; filename=" + strFileName)) ' Response.Clear() Response.WriteFile(FName) Response.End()

我该如何解决这个问题?

0 个答案:

没有答案