Closed hairyhenderson closed 4 years ago
Thanks for taking a look at that. I think I might actually have to create a v3/
directory and copy the code in there to make modules happy. It's working right now with the Caddy build server, so I don't want that to be screwed up. I'm not sure what the build server is doing differently to get caddy to build with the current configuration. Give me some time to try your pull request and see if it works with the build server.
Fixed this in the latest commit. Thanks for the heads up.
With go modules, versions v2 and above of a module are supposed to have a trailing
/vN
on the module name.When I try to require this package with the published module name, with a line like
require github.com/BTBurke/caddy-jwt v3.7.2
, I see the following error:If I try to use the "correct" name with
require github.com/BTBurke/caddy-jwt/v3 v3.7.2
, I see:(yeah, go modules are a pain)
The fix, from what I can tell, is to alter the
module
line ingo.mod
to append/v3
. I'll open a PR for that soon!