runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.51k stars 1.02k forks source link

go-generate step is broken #4664

Open chenrui333 opened 2 weeks ago

chenrui333 commented 2 weeks ago

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/v4@v4.1.0/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/v4@v4.1.0/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/v4@v4.1.0/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/v4@v4.1.0/pegomock/main.go:104 +0x1d60
main.main()
    /Users/rui/.asdf/installs/golang/1.22.4/packages/pkg/mod/github.com/petergtz/pegomock/v4@v4.1.0/pegomock/main.go:38 +0x6c
server/controllers/events/azuredevops_request_validator.go:11: running "pegomock": exit status 2
make: *** [go-generate] Error 1
chenrui333 commented 2 weeks ago

relates to https://github.com/petergtz/pegomock/pull/127