chore: compile without nosql's support for Postgres and MySQL
See https://github.com/caddyserver/caddy/pull/6655
Linter is complaining about G115, we silence that one in Caddy, we can do that here too in .golangci.yml
exclude-rules:
- text: 'G115'
linters:
- gosec
Thanks Francis, sorry I forgot about this PR.
My build script, which installs xcaddy@latest is just running into issues since v0.4.3 release and the caddy build fails with this error:
2024/11/05 22:55:34 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /root/out/caddy_2024-11-05_225334 -ldflags -w -s -trimpath -tags nobadger nomysql nopgx
package nomysql is not in std (/usr/local/go/src/nomysql)
package nopgx is not in std (/usr/local/go/src/nopgx)
With go install github.com/caddyserver/xcaddy/cmd/[email protected] it still works.
My build script, which installs
xcaddy@latestis just running into issues since v0.4.3 release and the caddy build fails with this error:2024/11/05 22:55:34 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /root/out/caddy_2024-11-05_225334 -ldflags -w -s -trimpath -tags nobadger nomysql nopgx package nomysql is not in std (/usr/local/go/src/nomysql) package nopgx is not in std (/usr/local/go/src/nopgx)With
go install github.com/caddyserver/xcaddy/cmd/[email protected]it still works.
Fix in: #213