douyan1896 2016-12-20 15:36
浏览 43

Golang Cloud套件中的依存关系中断

I'm attempting to import "cloud.google.com/go/datastore" into my package but am recieveing the following error:

# github.com/AndyNortrup/baby-namer/vendor/google.golang.org/genproto/googleapis/api/annotations

../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:41: unknown "github.com/AndyNortrup/baby-namer/vendor/github.com/golang/protobuf/proto".ExtensionDesc field 'Filename' in struct literal

The file annotations.pb.go has:

var E_Http = &proto.ExtensionDesc{
    ExtendedType:  (*google_protobuf.MethodOptions)(nil),
    ExtensionType: (*HttpRule)(nil),
    Field:         72295728,
    Name:          "google.api.http",
    Tag:           "bytes,72295728,opt,name=http",
    Filename:      "google/api/annotations.proto",
}

The file /vendor/github.com/golang/protobuf/proto/extensions.go doesn't include Filename:

// ExtensionDesc represents an extension specification.
// Used in generated code from the protocol compiler.
type ExtensionDesc struct {
    ExtendedType  Message     // nil pointer to the type that is being extended
    ExtensionType interface{} // nil pointer to the extension type
    Field         int32       // field number
    Name          string      // fully-qualified name of extension, for text formatting
    Tag           string      // protobuf tag style
}

I've pulled in all of the dependencies with govendor so I'm inclined to say that everything I have is everything I need. But I can see in the file here, that there are versions with the Filename attribute, so it appears I could substitue one for the other, but I'm not sure how to go about that.

Thank you in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?