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

go-generate step is broken #4664

Open
chenrui333 opened this issue Jun 15, 2024 · 1 comment · May be fixed by #4688
Open

go-generate step is broken #4664

chenrui333 opened this issue Jun 15, 2024 · 1 comment · May be fixed by #4688
Labels
help wanted Good feature for contributors mock

Comments

@chenrui333
Copy link
Member

Not sure since when, but right now make go-generate is broken

$ make go-generate
./scripts/go-generate.sh
go generate github.com/runatlantis/atlantis
go generate github.com/runatlantis/atlantis/cmd
go generate github.com/runatlantis/atlantis/server
go generate github.com/runatlantis/atlantis/server/controllers
go generate github.com/runatlantis/atlantis/server/controllers/events
panic: loading input failed: Did not find interface name "AzureDevopsRequestValidator"

goroutine 1 [running]:
github.com/petergtz/pegomock/v4/pegomock/filehandling.GenerateMockSourceCode({0x140000ea3a0, 0x100f937d0?, 0x1400010bb08?}, {0x0, 0x0}, {0x16f14e5b4, 0x5}, {0x0, 0x0}, 0x0, ...)
	/Users/rui/.asdf/installs/golang/1.22.4/packages/pkg/mod/github.com/petergtz/pegomock/[email protected]/pegomock/filehandling/filehandling.go:67 +0x22c
github.com/petergtz/pegomock/v4/pegomock/filehandling.GenerateMockFile({0x140000ea3a0?, 0x5?, 0x1000001ed?}, {0x16f14e5bd, 0x2b}, {0x0?, 0x140000c21f0?}, {0x16f14e5b4?, 0x0?}, {0x0?, ...}, ...)
	/Users/rui/.asdf/installs/golang/1.22.4/packages/pkg/mod/github.com/petergtz/pegomock/[email protected]/pegomock/filehandling/filehandling.go:52 +0x60
github.com/petergtz/pegomock/v4/pegomock/filehandling.GenerateMockFileInOutputDir({0x140000ea3a0, 0x2, 0x2}, {0x1400002a644?, 0x36?}, {0x16f14e5bd?, 0x2b?}, {0x0, 0x0}, {0x16f14e5b4, ...}, ...)
	/Users/rui/.asdf/installs/golang/1.22.4/packages/pkg/mod/github.com/petergtz/pegomock/[email protected]/pegomock/filehandling/filehandling.go:33 +0xdc
main.Run({0x140000de000, 0x7, 0x7}, {0x1010b8148, 0x140000c2058}, {0x1010b8168, 0x140000c2048}, 0x14000114200, {0x1010bb4a0, 0x101339c80})
	/Users/rui/.asdf/installs/golang/1.22.4/packages/pkg/mod/github.com/petergtz/pegomock/[email protected]/pegomock/main.go:104 +0x1d60
main.main()
	/Users/rui/.asdf/installs/golang/1.22.4/packages/pkg/mod/github.com/petergtz/pegomock/[email protected]/pegomock/main.go:38 +0x6c
server/controllers/events/azuredevops_request_validator.go:11: running "pegomock": exit status 2
make: *** [go-generate] Error 1
@chenrui333
Copy link
Member Author

relates to petergtz/pegomock#127

@chenrui333 chenrui333 added mock help wanted Good feature for contributors labels Jun 15, 2024
@chenrui333 chenrui333 linked a pull request Jun 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Good feature for contributors mock
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant