V2 modules and cross compile

ok that worked.

For others who might need more explicit directions

  1. In your github account fork https://github.com/danlsgiga/tls.dns
  2. Rather than pull down change/commit and push you can edit the file in place in your browser
    https://github.com/<username>/tls.dns/blob/master/go.mod
  3. Edit the first line replacing caddyserver with your github username
  4. At the bottom set a commit message and save
  5. Go to repo main page and click on commits. Find your last commit and click on the copy the commit hash stamp.
  6. then with xcaddy use --with github.com/<your-username>/tls.dns@<commit-hash> pasting in the commit-hash from step 5

I’m guessing this should work for anyone wanting to try a plugin/module that has yet to be merged into the caddy source.