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

Cannot build using xcaddy #24

Closed
evmcl opened this issue Jun 21, 2022 · 3 comments
Closed

Cannot build using xcaddy #24

evmcl opened this issue Jun 21, 2022 · 3 comments

Comments

@evmcl
Copy link

evmcl commented Jun 21, 2022

System: Ubuntu 22.04 LTS x86_64

Go: 1.18.1

Xcaddy: v0.3.0 h1:3LTHAhHb5YKKqTLLj8kdF9cfGMl4jHV4uRbtw7LBJ6k=

Command: xcaddy build latest --with github.com/caddyserver/nginx-adapter

Errors:
nginx-adapter@v0.0.4/if.go:112:69: cannot use "true" (untyped string constant) as []string value in map literal
nginx-adapter@v0.0.4/if.go:122:75: cannot use roperand (variable of type string) as type []string in map literal

@mohammed90
Copy link
Member

It wasn't []string until caddyserver/caddy#4433, which was released with v2.5.0 🙂 Hold on, I'll shoot a quick fix momentarily 🏃🏼‍♂️

@mohammed90
Copy link
Member

Run:

xcaddy build --with github.com/caddyserver/nginx-adapter@master

@evmcl
Copy link
Author

evmcl commented Jun 22, 2022

Awesome. That did the trick. Thank-you so much.

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

2 participants