gitrob
gitrob copied to clipboard
error during using go get : cannot use repo.ID (type *intint in field value
Expected Behavior
hello,i use # go get github.com/michenriksen/gitrob should use go get to install dependencies.
Actual Behavior
but it erro when i use go get ../../pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go:43:5: cannot use user.ID (type *int6nt in field value ../../pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go:73:11: cannot use repo.ID (type *intint in field value ../../pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go:105:73: cannot use member.ID (type *e *int in field value could you help me?
Specifications
- Gitrob version: i think latest
- Operating system: ubutu
- Go version: 1.13.6 linux/386
same problem
@RASSec @dzxindex Can you pull the fork and try to use that. If the error still persists can you open a pr in the fork please with any additional info and details you have such as go version, OS, and anything else you can think of. That fork is the bleeding edge of this project so be careful not to cut yourself ;)
Solution:
package core
import ( "context"
"github.com/google/go-github/github" )
type GithubOwner struct { Login *string ID *int64 Type *string Name *string AvatarURL *string URL *string Company *string Blog *string Location *string Email *string Bio *string }
type GithubRepository struct { Owner *string ID *int64 Name *string FullName *string CloneURL *string URL *string DefaultBranch *string Description *string Homepage *string }
Change int > int64 in /pkg/mod/github.com/michenriksen/[email protected]+incompatible/core/github.go
Regards.