https://www.ory.sh/ logo
#contributors
Title
# contributors
s

some-scooter-3723

10/03/2021, 1:27 AM
hello, I have 1 PR here https://github.com/ory/kratos/pull/1805 When I save files, I found that the order of packages are changed, seems my configuration is not the same with kratos's. Does anyone have the correct configuration for VSCode?
s

steep-lamp-91158

10/04/2021, 7:54 AM
you mean imports? just run
make format
😉
s

some-scooter-3723

10/04/2021, 7:56 AM
hi @steep-lamp-91158, another issue is that, I run "go test ./..." or "make test", but seems got some issues, tests cannot be run correctly, is there any other step I need to do?
you mean imports? just run 
make format
 😉 --> this point is clear, thank @steep-lamp-91158
s

steep-lamp-91158

10/04/2021, 8:05 AM
have a look into https://github.com/ory/kratos/blob/master/CONTRIBUTING.md TL;DR
Copy code
go test -tags sqlite ./...
s

some-scooter-3723

10/04/2021, 1:18 PM
hi @steep-lamp-91158, I got error below when running "go test -tags sqlite" inside identity/ folder:
Copy code
lanphan@Lans-MBP identity % go test -tags sqlite
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff6c53370a]

runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6c53370a
stack: frame={sp:0x7ffeefbff6d8, fp:0x7ffeefbff728} stack=[0x7ffeefb80778,0x7ffeefbff7e0)
0x00007ffeefbff5d8:  0x01007ffeefbff5f8  0x0000000000000004 
0x00007ffeefbff5e8:  0x000000000000001f  0x00007fff6c53370a 
0x00007ffeefbff5f8:  0x0b01dfacedebac1e  0x0000000000000001 
0x00007ffeefbff608:  0x0000000004036d91 <runtime.throw+0x0000000000000071>  0x00007ffeefbff6a8 
0x00007ffeefbff618:  0x0000000005131154  0x00007ffeefbff660 
0x00007ffeefbff628:  0x0000000004037048 <runtime.fatalthrow.func1+0x0000000000000048>  0x0000000005eafb60 
0x00007ffeefbff638:  0x0000000000000001  0x0000000000000001 
0x00007ffeefbff648:  0x00007ffeefbff6a8  0x0000000004036d91 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff658:  0x0000000005eafb60  0x00007ffeefbff698 
0x00007ffeefbff668:  0x0000000004036fd0 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff678 
0x00007ffeefbff678:  0x0000000004037000 <runtime.fatalthrow.func1+0x0000000000000000>  0x0000000005eafb60 
0x00007ffeefbff688:  0x0000000004036d91 <runtime.throw+0x0000000000000071>  0x00007ffeefbff6a8 
0x00007ffeefbff698:  0x00007ffeefbff6c8  0x0000000004036d91 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff6a8:  0x00007ffeefbff6b0  0x0000000004036dc0 <runtime.throw.func1+0x0000000000000000> 
0x00007ffeefbff6b8:  0x00000000051490a7  0x000000000000002a 
0x00007ffeefbff6c8:  0x00007ffeefbff718  0x000000000404d1d6 <runtime.sigpanic+0x0000000000000396> 
0x00007ffeefbff6d8: <0x00000000051490a7  0x0000000005eafb60 
0x00007ffeefbff6e8:  0x00007ffeefbff758  0x0000000004027cc6 <runtime.(*mheap).allocSpan+0x0000000000000546> 
0x00007ffeefbff6f8:  0x000000c0009a2bd8  0x000000000412e125 <regexp.makeOnePass.func1+0x0000000000001185> 
0x00007ffeefbff708:  0x000000c000000340  0x0000000000000000 
0x00007ffeefbff718:  0x00007ffeefbff760 !0x00007fff6c53370a 
0x00007ffeefbff728: >0x00007ffeefbff760  0x0000000005c3c000 
0x00007ffeefbff738:  0x0000000000000634  0x00000000043e3f45 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 
0x00007ffeefbff748:  0x000000000406c35f <runtime.syscall+0x000000000000001f>  0x000000c0009a3230 
0x00007ffeefbff758:  0x00007ffeefbff7a0  0x000000c0009a3200 
0x00007ffeefbff768:  0x000000000406a190 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001 
0x00007ffeefbff778:  0x0000000000003800  0x3800000000000200 
0x00007ffeefbff788:  0x00007ffeefbff7a0  0x0000000004062d85 <runtime.wbBufFlush.func1+0x0000000000000025> 
0x00007ffeefbff798:  0x0000000000000e28  0x000000c000000340 
0x00007ffeefbff7a8:  0x000000000406838b <runtime.morestack+0x000000000000008b>  0x0000000000000004 
0x00007ffeefbff7b8:  0x0000000005336630  0x0000000005eafb60 
0x00007ffeefbff7c8:  0x00007ffeefbff818  0x00000000040681a5 <runtime.mstart+0x0000000000000005> 
0x00007ffeefbff7d8:  0x000000000406815d <runtime.rt0_go+0x000000000000013d> 
runtime.throw({0x51490a7, 0x5eafb60})
        /usr/local/Cellar/go/1.17/libexec/src/runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6c53370a
stack: frame={sp:0x7ffeefbff6d8, fp:0x7ffeefbff728} stack=[0x7ffeefb80778,0x7ffeefbff7e0)
0x00007ffeefbff5d8:  0x01007ffeefbff5f8  0x0000000000000004 
0x00007ffeefbff5e8:  0x000000000000001f  0x00007fff6c53370a 
0x00007ffeefbff5f8:  0x0b01dfacedebac1e  0x0000000000000001 
0x00007ffeefbff608:  0x0000000004036d91 <runtime.throw+0x0000000000000071>  0x00007ffeefbff6a8 
0x00007ffeefbff618:  0x0000000005131154  0x00007ffeefbff660 
0x00007ffeefbff628:  0x0000000004037048 <runtime.fatalthrow.func1+0x0000000000000048>  0x0000000005eafb60 
0x00007ffeefbff638:  0x0000000000000001  0x0000000000000001 
0x00007ffeefbff648:  0x00007ffeefbff6a8  0x0000000004036d91 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff658:  0x0000000005eafb60  0x00007ffeefbff698 
0x00007ffeefbff668:  0x0000000004036fd0 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff678 
0x00007ffeefbff678:  0x0000000004037000 <runtime.fatalthrow.func1+0x0000000000000000>  0x0000000005eafb60 
0x00007ffeefbff688:  0x0000000004036d91 <runtime.throw+0x0000000000000071>  0x00007ffeefbff6a8 
0x00007ffeefbff698:  0x00007ffeefbff6c8  0x0000000004036d91 <runtime.throw+0x0000000000000071> 
0x00007ffeefbff6a8:  0x00007ffeefbff6b0  0x0000000004036dc0 <runtime.throw.func1+0x0000000000000000> 
0x00007ffeefbff6b8:  0x00000000051490a7  0x000000000000002a 
0x00007ffeefbff6c8:  0x00007ffeefbff718  0x000000000404d1d6 <runtime.sigpanic+0x0000000000000396> 
0x00007ffeefbff6d8: <0x00000000051490a7  0x0000000005eafb60 
0x00007ffeefbff6e8:  0x00007ffeefbff758  0x0000000004027cc6 <runtime.(*mheap).allocSpan+0x0000000000000546> 
0x00007ffeefbff6f8:  0x000000c0009a2bd8  0x000000000412e125 <regexp.makeOnePass.func1+0x0000000000001185> 
0x00007ffeefbff708:  0x000000c000000340  0x0000000000000000 
0x00007ffeefbff718:  0x00007ffeefbff760 !0x00007fff6c53370a 
0x00007ffeefbff728: >0x00007ffeefbff760  0x0000000005c3c000 
0x00007ffeefbff738:  0x0000000000000634  0x00000000043e3f45 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 
0x00007ffeefbff748:  0x000000000406c35f <runtime.syscall+0x000000000000001f>  0x000000c0009a3230 
0x00007ffeefbff758:  0x00007ffeefbff7a0  0x000000c0009a3200 
0x00007ffeefbff768:  0x000000000406a190 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001 
0x00007ffeefbff778:  0x0000000000003800  0x3800000000000200 
0x00007ffeefbff788:  0x00007ffeefbff7a0  0x0000000004062d85 <runtime.wbBufFlush.func1+0x0000000000000025> 
0x00007ffeefbff798:  0x0000000000000e28  0x000000c000000340 
0x00007ffeefbff7a8:  0x000000000406838b <runtime.morestack+0x000000000000008b>  0x0000000000000004 
0x00007ffeefbff7b8:  0x0000000005336630  0x0000000005eafb60 
0x00007ffeefbff7c8:  0x00007ffeefbff818  0x00000000040681a5 <runtime.mstart+0x0000000000000005> 
0x00007ffeefbff7d8:  0x000000000406815d <runtime.rt0_go+0x000000000000013d> 
runtime.sigpanic()
        /usr/local/Cellar/go/1.17/libexec/src/runtime/signal_unix.go:719 +0x396

goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x43e3f40, 0x1, 0x40487413, 0xc0009a32c0)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc0009a3230 sp=0xc0009a3210 pc=0x4066c1b
syscall.syscall(0x4076ae6, 0xd0, 0xc0009a32e8, 0x4076a18)
        <autogenerated>:1 +0x26 fp=0xc0009a3278 sp=0xc0009a3230 pc=0x406cb66
<http://golang.org/x/sys/unix.ioctl(0x50fdc95|golang.org/x/sys/unix.ioctl(0x50fdc95>, 0x4, 0x10000000000d0)
        /Users/lanphan/go/pkg/mod/golang.org/x/sys@v0.0.0-20210324051608-47abb6519492/unix/zsyscall_darwin_amd64.go:690 +0x39 fp=0xc0009a32a8 sp=0xc0009a3278 pc=0x43e3839
<http://golang.org/x/sys/unix.IoctlGetTermios(...)|golang.org/x/sys/unix.IoctlGetTermios(...)>
        /Users/lanphan/go/pkg/mod/golang.org/x/sys@v0.0.0-20210324051608-47abb6519492/unix/ioctl.go:73
<http://github.com/mattn/go-isatty.IsTerminal(0x50fdc95)|github.com/mattn/go-isatty.IsTerminal(0x50fdc95)>
        /Users/lanphan/go/pkg/mod/github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc0009a3318 sp=0xc0009a32a8 pc=0x4af1a30
<http://github.com/fatih/color.init()|github.com/fatih/color.init()>
        /Users/lanphan/go/pkg/mod/github.com/fatih/color@v1.9.0/color.go:21 +0x7a fp=0xc0009a3350 sp=0xc0009a3318 pc=0x4af237a
runtime.doInit(0x5c4b3a0)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6498 +0x123 fp=0xc0009a3488 sp=0xc0009a3350 pc=0x40465c3
runtime.doInit(0x5c5b560)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a35c0 sp=0xc0009a3488 pc=0x4046511
runtime.doInit(0x5c4e420)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a36f8 sp=0xc0009a35c0 pc=0x4046511
runtime.doInit(0x5c50760)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3830 sp=0xc0009a36f8 pc=0x4046511
runtime.doInit(0x5c5a040)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3968 sp=0xc0009a3830 pc=0x4046511
runtime.doInit(0x5c4b760)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3aa0 sp=0xc0009a3968 pc=0x4046511
runtime.doInit(0x5c4e320)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3bd8 sp=0xc0009a3aa0 pc=0x4046511
runtime.doInit(0x5c5d0e0)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3d10 sp=0xc0009a3bd8 pc=0x4046511
runtime.doInit(0x5c54900)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3e48 sp=0xc0009a3d10 pc=0x4046511
runtime.doInit(0x5c48520)
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc0009a3f80 sp=0xc0009a3e48 pc=0x4046511
runtime.main()
        /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:238 +0x1e6 fp=0xc0009a3fe0 sp=0xc0009a3f80 pc=0x40393e6
runtime.goexit()
        /usr/local/Cellar/go/1.17/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0009a3fe8 sp=0xc0009a3fe0 pc=0x406a481

goroutine 18 [select]:
<http://go.elastic.co/apm.(*Tracer).loop(0xc000416180)|go.elastic.co/apm.(*Tracer).loop(0xc000416180)>
        /Users/lanphan/go/pkg/mod/go.elastic.co/apm@v1.8.0/tracer.go:854 +0xbb5
created by <http://go.elastic.co/apm.newTracer|go.elastic.co/apm.newTracer>
        /Users/lanphan/go/pkg/mod/go.elastic.co/apm@v1.8.0/tracer.go:420 +0x81e

goroutine 19 [chan receive]:
<http://go.elastic.co/apm.(*Tracer).loop.func1()|go.elastic.co/apm.(*Tracer).loop.func1()>
        /Users/lanphan/go/pkg/mod/go.elastic.co/apm@v1.8.0/tracer.go:757 +0x1c5
created by <http://go.elastic.co/apm.(*Tracer).loop|go.elastic.co/apm.(*Tracer).loop>
        /Users/lanphan/go/pkg/mod/go.elastic.co/apm@v1.8.0/tracer.go:755 +0x3ba

goroutine 10 [select]:
<http://go.elastic.co/apm/transport.(*HTTPTransport).WatchConfig.func1()|go.elastic.co/apm/transport.(*HTTPTransport).WatchConfig.func1()>
        /Users/lanphan/go/pkg/mod/go.elastic.co/apm@v1.8.0/transport/http.go:386 +0x1ea
created by <http://go.elastic.co/apm/transport.(*HTTPTransport).WatchConfig|go.elastic.co/apm/transport.(*HTTPTransport).WatchConfig>
        /Users/lanphan/go/pkg/mod/go.elastic.co/apm@v1.8.0/transport/http.go:378 +0x12f

goroutine 50 [select]:
<http://github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc000382690)|github.com/dgraph-io/ristretto.(*defaultPolicy).processItems(0xc000382690)>
        /Users/lanphan/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3/policy.go:96 +0x8c
created by <http://github.com/dgraph-io/ristretto.newDefaultPolicy|github.com/dgraph-io/ristretto.newDefaultPolicy>
        /Users/lanphan/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3/policy.go:80 +0x15b

goroutine 51 [select]:
<http://github.com/dgraph-io/ristretto.(*Cache).processItems(0xc00007e3c0)|github.com/dgraph-io/ristretto.(*Cache).processItems(0xc00007e3c0)>
        /Users/lanphan/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3/cache.go:314 +0xb1
created by <http://github.com/dgraph-io/ristretto.NewCache|github.com/dgraph-io/ristretto.NewCache>
        /Users/lanphan/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.3/cache.go:162 +0x347
exit status 2
FAIL    <http://github.com/ory/kratos/identity|github.com/ory/kratos/identity>  1.648s
hi @steep-lamp-91158, do you know how to solve issue above?
s

steep-lamp-91158

10/05/2021, 4:18 PM
Never seen that, sorry
8 Views