Trying to register a new module and getting errors

Hello everyone,

I tried to register two new modules for Caddy and I receive an error. Here is the error id (ce35d9ef-4dcd-41ac-86b2-a7ccd72d37d1):

I am a bit unsure if I did everything right, but comparing with other modules, mine do look ok. Both compile with xcaddy. The modules are GitHub - mkalus/caddy_block_aws: Automatically block all calls from AWS servers in your Caddy server and GitHub - mkalus/caddy_nobots_v2: Caddy v2 Server plugin to protect your website against web crawlers and bots

You’re using the repository URL to register. Use the module name, i.e. github.com/mkalus/caddy_block_aws

Ah, ok, I understand. Now there is another error:

Sorry, something went wrong:

unable to scan modules in package GitHub - mkalus/caddy_block_aws: Automatically block all calls from AWS servers in your Caddy server

Please include this error ID if reporting:
884a1da4-9935-4ad2-8671-4f43deac94e0

I also tried github.com/mkalus/caddy_block_aws@v1.0 or other variants with the same result.

I’m investigating. I see the error in the logs, but I’m trying to find where it fails exactly. I’m not sure what’s tripping it.

Found it! Try now. This change in go1.23 broke our analyzer:

By default, go/types now produces Alias type nodes for type aliases. This behavior can be controlled by the GODEBUG gotypesalias flag. Its default has changed from 0 in Go 1.22 to 1 in Go 1.23.

Perfect, works now. Many thanks and keep up the great work.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.