egoctl
egoctl copied to clipboard
在window wsl 运行egoctl web start 会panic
环境 windows wsl Ubuntu 20.04.6 LTS egoctl version: 1.0.6 go version: 1.20.1 错误信息
panic: init max procs
goroutine 1 [running]:
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc00021e480, 0xc0003c6300, 0x2, 0x2)
/home/runner/go/pkg/mod/go.uber.org/[email protected]/zapcore/entry.go:234 +0x58d
go.uber.org/zap.(*Logger).Panic(0xc000280ba0, 0x134bd3b, 0xe, 0xc0003c6300, 0x2, 0x2)
/home/runner/go/pkg/mod/go.uber.org/[email protected]/logger.go:226 +0x85
github.com/gotomicro/ego/core/elog.(*Component).Panic(0xc0005042c0, 0x134bd3b, 0xe, 0xc0003c6300, 0x2, 0x2)
/home/runner/go/pkg/mod/github.com/gotomicro/[email protected]/core/elog/component.go:383 +0x71
github.com/gotomicro/ego.initMaxProcs(0x0, 0x0)
/home/runner/go/pkg/mod/github.com/gotomicro/[email protected]/ego_function.go:188 +0x5e5
github.com/gotomicro/ego.runSerialFuncReturnError(0xc000504a80, 0x7, 0x7, 0x1, 0x2)
/home/runner/go/pkg/mod/github.com/gotomicro/[email protected]/ego_function.go:221 +0x48
github.com/gotomicro/ego.New(0xc0008d6b30, 0x2, 0x1, 0x1ac3d18)
/home/runner/go/pkg/mod/github.com/gotomicro/[email protected]/ego.go:107 +0x71c
github.com/gotomicro/egoctl/internal/app/module/web.(*Container).Run(0x249b8c0)
/home/runner/work/egoctl/egoctl/internal/app/module/web/web.go:65 +0x5f3
github.com/gotomicro/egoctl/cmd/web.init.0.func1(0xc0008caf00, 0x24ce748, 0x0, 0x0)
/home/runner/work/egoctl/egoctl/cmd/web/web.go:25 +0x2d
github.com/spf13/cobra.(*Command).execute(0xc0008caf00, 0x24ce748, 0x0, 0x0, 0xc0008caf00, 0x24ce748)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x248d520, 0xc00007a778, 0xc000883f78, 0x406365)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
main.main()
/home/runner/work/egoctl/egoctl/main.go:32 +0x36