RunHookInspectFile unit test fails on mac
One of the stork-tool
unit tests always fails for me on mac:
START| RunHookInspectFile
| fatal error: runtime: no plugin module data
| goroutine 43 [running]:
| runtime.throw({0x100943332?, 0x10000f41e?})
| /Users/marcin/devel/stork/tools/golang/go/src/runtime/panic.go:992 +0x71 fp=0xc0002a4fd0 sp=0xc0002a4fa0 pc=0x100038a91
| plugin.lastmoduleinit()
| /Users/marcin/devel/stork/tools/golang/go/src/runtime/plugin.go:20 +0x8d0 fp=0xc0002a50b8 sp=0xc0002a4fd0 pc=0x10006a0f0
| plugin.open({0x7ff7bfeff620, 0x58})
| /Users/marcin/devel/stork/tools/golang/go/src/plugin/plugin_dlopen.go:77 +0x3fb fp=0xc0002a53b0 sp=0xc0002a50b8 pc=0x1004783bb
| plugin.Open(...)
| /Users/marcin/devel/stork/tools/golang/go/src/plugin/plugin.go:32
| isc.org/stork/hooksutil.NewLibraryManager({0x7ff7bfeff620, 0x58})
| /Users/marcin/devel/stork/backend/hooksutil/librarymanager.go:29 +0x4b fp=0xc0002a5438 sp=0xc0002a53b0 pc=0x10047930b
| isc.org/stork/cmd/stork-tool.runHookInspect(0xc00013a888?)
| /Users/marcin/devel/stork/backend/cmd/stork-tool/main.go:231 +0x96 fp=0xc0002a54c8 sp=0xc0002a5438 pc=0x1007ebbd6
| github.com/urfave/cli/v2.(*Command).Run(0xc0001e0500, 0xc0002872c0, {0xc0001e20f0, 0x3, 0x3})
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/urfave/cli/v2@v2.23.7/command.go:271 +0x1364 fp=0xc0002a5888 sp=0xc0002a54c8 pc=0x1003869c4
| github.com/urfave/cli/v2.(*Command).Run(0xc0001e0780, 0xc000287140, {0xc000286f00, 0x4, 0x4})
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/urfave/cli/v2@v2.23.7/command.go:264 +0x1249 fp=0xc0002a5c48 sp=0xc0002a5888 pc=0x1003868a9
| github.com/urfave/cli/v2.(*App).RunContext(0xc000000780, {0x100a51cf8?, 0xc000128018}, {0xc000286f00, 0x4, 0x4})
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/urfave/cli/v2@v2.23.7/app.go:333 +0x1056 fp=0xc0002a5d98 sp=0xc0002a5c48 pc=0x100380756
| github.com/urfave/cli/v2.(*App).Run(...)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/urfave/cli/v2@v2.23.7/app.go:310
| isc.org/stork/cmd/stork-tool.main()
| /Users/marcin/devel/stork/backend/cmd/stork-tool/main.go:537 +0x9c fp=0xc0002a5e20 sp=0xc0002a5d98 pc=0x1007f0b7c
| isc.org/stork/cmd/stork-tool.TestRunHookInspectFile(0x0)
| /Users/marcin/devel/stork/backend/cmd/stork-tool/main_test.go:239 +0x258 fp=0xc0002a5ea8 sp=0xc0002a5e20 pc=0x1007f3838
| testing.tRunner(0xc000083d40, 0x1009893d0)
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1439 +0x214 fp=0xc0002a5fb0 sp=0xc0002a5ea8 pc=0x1001c0dd4
| testing.(*T).Run.func1()
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1486 +0x48 fp=0xc0002a5fe0 sp=0xc0002a5fb0 pc=0x1001c2588
| runtime.goexit()
| /Users/marcin/devel/stork/tools/golang/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0002a5fe8 sp=0xc0002a5fe0 pc=0x10006f4c1
| created by testing.(*T).Run
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1486 +0x725
| goroutine 1 [chan receive]:
| testing.(*T).Run(0xc00028e000, {0x10093d656, 0x16}, 0x1009893d0)
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1487 +0x750
| testing.runTests.func1(0x0?)
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1839 +0x9a
| testing.tRunner(0xc00028e000, 0xc00018fba0)
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1439 +0x214
| testing.runTests(0xc000260f00?, {0x100e07a20, 0xb, 0xb}, {0x40?, 0x129825798?, 0x100e17200?})
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1837 +0x7e5
| testing.(*M).Run(0xc000260f00)
| /Users/marcin/devel/stork/tools/golang/go/src/testing/testing.go:1719 +0xa72
| main.main()
| _testmain.go:67 +0x2e5
| goroutine 38 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc0003640a0, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 58 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260aa0, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 60 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260be0, 0x1009893a0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 66 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260820, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 61 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260dc0, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 67 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260960, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 83 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260c80, 0x1009893a8?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 68 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000261040, 0xc000053fd0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 69 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000260fa0, 0xc000221de0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 71 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000261180, 0x1009893b0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 98 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000364140, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 72 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc0003641e0, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
| goroutine 73 [chan receive]:
| github.com/go-pg/pg/v10/internal/pool.(*ConnPool).reaper(0xc000364320, 0x0?)
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:441 +0xfe
| created by github.com/go-pg/pg/v10/internal/pool.NewConnPool
| /Users/marcin/devel/stork/tools/golang/gopath/pkg/mod/github.com/go-pg/pg/v10@v10.11.0/internal/pool/pool.go:103 +0x386
FAIL | isc.org/stork/cmd/stork-tool 1.750s