abiosoft / caddy-json-schema

JSON schema generator for Caddy v2
Apache License 2.0
135 stars 4 forks source link

Now also breaks with caddy 2.0.0 #4

Closed josh-hemphill closed 3 years ago

josh-hemphill commented 3 years ago

Running the instructed commands

xcaddy build v2.0.0 \
    --with github.com/abiosoft/caddy-json-schema

./caddy json-schema -vscode

results in a panic

panic: qtls.ClientSessionState not compatible with tls.ClientSessionState

goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.2()
    github.com/lucas-clemente/quic-go@v0.15.3/internal/handshake/unsafe.go:26 +0x205
abiosoft commented 3 years ago

do you mean caddy 2.0.0?

josh-hemphill commented 3 years ago

Yes sorry

abiosoft commented 3 years ago

Can you try again with the latest version?

xcaddy build v2.4.1 \
    --with github.com/abiosoft/caddy-json-schema
josh-hemphill commented 3 years ago

Awesome! It all seems to be working now. Thanks!