infogulch / xrss

42 stars 3 forks source link

Update module name to github.com/infogulch/xtemplate ? #2

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

this compiles is I change the Module name for xtemplate.

GOFLAGS='-tags="sqlite_json"' CGO_ENABLED=1 xcaddy build --with github.com/infogulch/xtemplate --with github.com/greenpau/caddy-security --with github.com/infogulch/xrss

But your readme way fails.

cd xrss &&  GOFLAGS='-tags="sqlite_json"' CGO_ENABLED=1 xcaddy build --with github.com/infogulch/caddy-xtemplate --with github.com/greenpau/caddy-security --with github.com/infogulch/xrss

2023/10/09 15:14:07 [INFO] exec (timeout=0s): /opt/homebrew/opt/go/libexec/bin/go get -d -v github.com/infogulch/caddy-xtemplate github.com/caddyserver/caddy/v2 
go: github.com/infogulch/caddy-xtemplate@v0.0.0-20231007181448-f5f52f687e69 found: parsing go.mod:
        module declares its path as: github.com/infogulch/xtemplate
                but was required as: github.com/infogulch/caddy-xtemplate
go: github.com/infogulch/caddy-xtemplate@upgrade (v0.0.0-20231007181448-f5f52f687e69) requires github.com/infogulch/caddy-xtemplate@v0.0.0-20231007181448-f5f52f687e69: parsing go.mod:
        module declares its path as: github.com/infogulch/xtemplate
                but was required as: github.com/infogulch/caddy-xtemplate
2023/10/09 15:14:08 [FATAL] exit status 1

But does now run

./caddy run --config /Users/apple/workspace/go/src/github.com/gedw99/gio-htmx/exp/caddy/xrss/Caddyfile
2023/10/09 13:10:46.022 INFO    using provided configuration    {"config_file": "/Users/apple/workspace/go/src/github.com/gedw99/gio-htmx/exp/caddy/xrss/Caddyfile", "config_adapter": ""}
Error: adapting config using caddyfile: parsing caddyfile tokens for 'route': /Users/apple/workspace/go/src/github.com/gedw99/gio-htmx/exp/caddy/xrss/Caddyfile:22 - Error during parsing: unrecognized directive: xtemplate - are you sure your Caddyfile structure (nesting and braces) is correct?, import chain: ['']
make: *** [Makefile:18: xrss-run] Error 1

I think the Caddy module name is wrong maybe ?

infogulch commented 1 year ago

Thanks! It should be fixed now.