xcaddy icon indicating copy to clipboard operation
xcaddy copied to clipboard

chore: compile without nosql's support for Postgres and MySQL

Open dunglas opened this issue 1 year ago • 1 comments

See https://github.com/caddyserver/caddy/pull/6655

dunglas avatar Oct 22 '24 15:10 dunglas

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

francislavoie avatar Oct 22 '24 15:10 francislavoie

Thanks Francis, sorry I forgot about this PR.

dunglas avatar Nov 05 '24 19:11 dunglas

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.

steffenbusch avatar Nov 05 '24 22:11 steffenbusch

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.

Fix in: #213

mohammed90 avatar Nov 05 '24 22:11 mohammed90