flog
flog copied to clipboard
Undifined: gofakeit.StatusCode error on install
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.
@mingrammer I have the same error :-) Any ways to fix it ?
@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.
That error gets fixed only with go version 1.16
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
Sorry for the late reply. I'll resolve this issue.
Re-install please.