(solved) Updating Plugin to V2

I’m planning to update my plugin GitHub - gamalan/caddy-tlsredis: Redis Storage using for Caddy TLS Data, but i’m hitting some issue.

When executing go get -v github.com/caddyserver/caddy/v2@v2.0.0-rc.1
it always running into seemingly cyclic dependency, which is weird. Anybody building caddy v2 hitting the same problem?

go: github.com/caddyserver/caddy/v2@v2.0.0-rc.1 requires
        github.com/smallstep/cli@v0.14.0-rc.3 requires
        github.com/smallstep/certificates@v0.14.0-rc.2.0.20200129195847-7846696fbb69 requires
        github.com/smallstep/cli@v0.14.0-rc.1.0.20200128213701-65805ae554f6 requires
        github.com/smallstep/certificates@v0.14.0-rc.1.0.20200128212940-432ed0090f3d requires
        github.com/smallstep/cli@v0.14.0-rc.1.0.20200127233252-e55637e57819: invalid version: unknown revision e55637e57819

did a fresh mod init and it works for me :confused:
Mi 8. Apr 14 55 39 CEST 2020

1 Like

Yep, my mistake, there are other dependency that need to be updated. I didn’t notice that certmagic was moved to github.com/caddyserver. Replacing it to the newest version and it work normally.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.