Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed with: quic-go doesn't build on Go 1.18 yet. #90

Closed
CompuRoot opened this issue Mar 26, 2022 · 3 comments
Closed

Failed with: quic-go doesn't build on Go 1.18 yet. #90

CompuRoot opened this issue Mar 26, 2022 · 3 comments

Comments

@CompuRoot
Copy link

xcaddy: from development branch
go version go1.18 linux/amd64

The same issue as it was in 4216

xcaddy successfully compiled, but command xcaddy list-modules failed with error on following:

go/pkg/mod/github.com/lucas-clemente/quic-go@v0.23.0/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration
@francislavoie
Copy link
Member

The latest stable version of Caddy was released before Go 1.18 was released, so it doesn't support it. We made fixes on the master branch to support Go 1.18, so if you absolutely need to build with 1.18, you should build from master for now. Otherwise, please downgrade to 1.17 in the meantime until Caddy's next stable release.

@tyler71
Copy link

tyler71 commented Jun 29, 2022

If you build with docker and can't easily downgrade your go version, caddy:2.4.1-builder worked fine

@francislavoie
Copy link
Member

francislavoie commented Jun 29, 2022

@tyler71 Use v2.5.1. Not v2.4.1. That's an outdated version.

Either way, this is a long-since-fixed issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants