gitrob icon indicating copy to clipboard operation
gitrob copied to clipboard

error during using go get : cannot use repo.ID (type *intint in field value

Open dzxindex opened this issue 5 years ago • 3 comments

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

dzxindex avatar Jan 21 '20 02:01 dzxindex

same problem

RASSec avatar Feb 20 '20 03:02 RASSec

@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 ;)

mattyjones avatar May 20 '20 04:05 mattyjones

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.

davidcreus avatar Jun 26 '20 14:06 davidcreus