bradfitz / go-issue-mirror

[old] precursor to golang.org/x/build/maintner/godata
24 stars 2 forks source link

cmd/servegoissues: Update issues.Service interface. #16

Closed dmitshur closed 7 years ago

dmitshur commented 7 years ago

Update for shurcooL/issues@d5974e9a15c00a1f96671d2405bc6d52571f1d5a.

This change is needed to fix what otherwise would be a build error:

$ go build -o /dev/null github.com/bradfitz/go-issue-mirror/cmd/servegoissues
# github.com/bradfitz/go-issue-mirror/cmd/servegoissues
cmd/servegoissues/servegoissues.go:36: cannot use issuesService literal (type issuesService) as type "github.com/shurcooL/issues".Service in argument to issuesapp.New:
    issuesService does not implement "github.com/shurcooL/issues".Service (wrong type for ListComments method)
        have ListComments(context.Context, "github.com/shurcooL/issues".RepoSpec, uint64, interface {}) ([]"github.com/shurcooL/issues".Comment, error)
        want ListComments(context.Context, "github.com/shurcooL/issues".RepoSpec, uint64, *"github.com/shurcooL/issues".ListOptions) ([]"github.com/shurcooL/issues".Comment, error)