Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created November 22, 2022 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusramberg/8d190ec4d503d0acf5089f33b22645e3 to your computer and use it in GitHub Desktop.
Save marcusramberg/8d190ec4d503d0acf5089f33b22645e3 to your computer and use it in GitHub Desktop.
~/Source/atlantis emoji_reactions* ≡ 3m 22s ❯ make regen-mocks
find . -type f | grep mocks/mock_ | xargs rm
find . -type f | grep mocks/matchers | xargs rm
./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
go generate github.com/runatlantis/atlantis/server/controllers/templates
go generate github.com/runatlantis/atlantis/server/controllers/websocket
go generate github.com/runatlantis/atlantis/server/core/config
go generate github.com/runatlantis/atlantis/server/core/config/raw
go generate github.com/runatlantis/atlantis/server/core/config/valid
go generate github.com/runatlantis/atlantis/server/core/db
go generate github.com/runatlantis/atlantis/server/core/locking
go generate github.com/runatlantis/atlantis/server/core/redis
go generate github.com/runatlantis/atlantis/server/core/runtime
go generate github.com/runatlantis/atlantis/server/core/runtime/cache
go generate github.com/runatlantis/atlantis/server/core/runtime/common
go generate github.com/runatlantis/atlantis/server/core/runtime/models
go generate github.com/runatlantis/atlantis/server/core/runtime/policy
go generate github.com/runatlantis/atlantis/server/core/terraform
go generate github.com/runatlantis/atlantis/server/events
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102c98be8]
goroutine 1 [running]:
github.com/petergtz/pegomock/modelgen/loader.GenerateModel({0x140001aa210, 0x2d}, {0x16d41aa1a, 0x14})
/Users/marcus/go/pkg/mod/github.com/petergtz/pegomock@v2.9.0+incompatible/modelgen/loader/loader.go:23 +0x198
github.com/petergtz/pegomock/pegomock/filehandling.GenerateMockSourceCode({0x140001be520?, 0x2, 0x100000000?}, {0x0, 0x0}, {0x16d41a9ec, 0x5}, {0x0, 0x0}, 0x0, ...)
/Users/marcus/go/pkg/mod/github.com/petergtz/pegomock@v2.9.0+incompatible/pegomock/filehandling/filehandling.go:102 +0x1d8
github.com/petergtz/pegomock/pegomock/filehandling.GenerateMockFile({0x140001be520?, 0x140000281b4?, 0x20?}, {0x16d41a9f5, 0x24}, {0x0?, 0x14000115b48?}, {0x16d41a9ec?, 0x140001ac240?}, {0x0?, ...}, ...)
/Users/marcus/go/pkg/mod/github.com/petergtz/pegomock@v2.9.0+incompatible/pegomock/filehandling/filehandling.go:64 +0x70
github.com/petergtz/pegomock/pegomock/filehandling.GenerateMockFileInOutputDir({0x140001be520, 0x2, 0x2}, {0x140000281b4?, 0x2b?}, {0x16d41a9f5?, 0x24?}, {0x0, 0x0}, {0x16d41a9ec, ...}, ...)
/Users/marcus/go/pkg/mod/github.com/petergtz/pegomock@v2.9.0+incompatible/pegomock/filehandling/filehandling.go:40 +0xf4
main.Run({0x140001ac000, 0x9, 0x9}, {0x102daa2e8?, 0x1400019a010}, {0x102daa2c8, 0x1400019a000}, 0x140001da690, 0x102f70948?)
/Users/marcus/go/pkg/mod/github.com/petergtz/pegomock@v2.9.0+incompatible/pegomock/main.go:116 +0x25d8
main.main()
/Users/marcus/go/pkg/mod/github.com/petergtz/pegomock@v2.9.0+incompatible/pegomock/main.go:37 +0x7c
server/events/project_command_runner.go:89: running "pegomock": exit status 2
make: *** [regen-mocks] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment