Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undifined: gofakeit.StatusCode error on install #40

Open
scottrich4 opened this issue Jan 29, 2021 · 6 comments
Open

Undifined: gofakeit.StatusCode error on install #40

scottrich4 opened this issue Jan 29, 2021 · 6 comments

Comments

@scottrich4
Copy link

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.

@ghost
Copy link

ghost commented Mar 3, 2021

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

@scottrich4
Copy link
Author

@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.

@humanoid-endhiran
Copy link

That error gets fixed only with go version 1.16

@zygimantus
Copy link

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

@mingrammer
Copy link
Owner

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

@mingrammer
Copy link
Owner

Re-install please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants