Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interfaces that embed imported interfaces break impl #30

Open
lanzafame opened this issue Sep 28, 2018 · 2 comments
Open

Interfaces that embed imported interfaces break impl #30

lanzafame opened this issue Sep 28, 2018 · 2 comments

Comments

@lanzafame
Copy link

I am attempting to generate the stubs for the Node interface but I get a not an interface: blocks.Block:

import (
	blocks "github.com/ipfs/go-block-format"
)

type Node interface {
	blocks.Block
	Resolver
// snipped for brevity
}

From the blocks package:

// Block provides abstraction for blocks implementations.
type Block interface {
	RawData() []byte
	Cid() *cid.Cid
	String() string
	Loggable() map[string]interface{}
}
@wangmir
Copy link

wangmir commented Apr 10, 2023

Is there any fix on this?

@josharian
Copy link
Owner

Nope, although I would be happy to review a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants