flog icon indicating copy to clipboard operation
flog copied to clipboard

Undifined: gofakeit.StatusCode error on install

Open scottrich4 opened this issue 4 years ago • 6 comments

When running the "go get -u github.com/minigrammer/flog" command to install the program, I get these errors:

go/src/github.com/mingrammer/flog/log.go:38:3: undefined: gofakeit.StatusCode
go/src/github.com/mingrammer/flog/log.go:53:3: undefined: gofakeit.StatusCode
go/src/github.com/mingrammer/flog/log.go:114:3: undefined: gofakeit.StatusCode
go/src/github.com/mingrammer/flog/log.go:129:3: undefined: gofakeit.StatusCode

I am running this on a CentOS 7 server.

scottrich4 avatar Jan 29 '21 16:01 scottrich4

@mingrammer I have the same error :-) Any ways to fix it ?

ghost avatar Mar 03 '21 07:03 ghost

@lucmichalski It turned out I didn't have the right "go" installed. I forget what I did to fix it and the server I was using for it was decommissioned so I can't say what fixed it, but it might be a good place for you to start.

scottrich4 avatar Mar 03 '21 19:03 scottrich4

That error gets fixed only with go version 1.16

humanoid-endhiran avatar Dec 01 '21 01:12 humanoid-endhiran

I am having same issue with GOVERSION=go1.19

C:\Users\test\Downloads>go get -u github.com/mingrammer/flog
# github.com/mingrammer/flog
..\go\src\github.com\mingrammer\flog\log.go:38:12: undefined: gofakeit.StatusCode
..\go\src\github.com\mingrammer\flog\log.go:53:12: undefined: gofakeit.StatusCode
..\go\src\github.com\mingrammer\flog\log.go:114:12: undefined: gofakeit.StatusCode
..\go\src\github.com\mingrammer\flog\log.go:129:12: undefined: gofakeit.StatusCode

zygimantus avatar Sep 22 '22 07:09 zygimantus

Sorry for the late reply. I'll resolve this issue.

mingrammer avatar Sep 22 '22 07:09 mingrammer

Re-install please.

mingrammer avatar Jan 16 '24 15:01 mingrammer