Closed CyberAustin closed 3 months ago
Ugh. Can't run linters or devcontainer in Replit. Have to fix this later at home.
JK. Forgot GitHub codespaces was a thing.
I don't know why the linter is failing in GitHub Actions because it passes in the dev container. Anyway, ready for review.
Now, we need to add a check the domain isn't
""
for the providers actually using the domain parameter. Most of them do, but there are 2-3 exceptions (like duckdns, goip). So that would be edits in each of the provider subpackage withininternal/provider/providers
I'm not sure what you're asking here. Could you explain it a different way.
We need to add a check in most providers that the domain is not empty ""
. Because in the current "above layer" check, we check the domain is empty (🆗) or valid (🆗), but some providers require a non-empty domain (most except a few).
add a case to check the domain is not empty:
case p.domain == "":
return fmt.Errorf("%w", errors.ErrDomainNotSet)
Should be good now. Please take a look @qdm12
Should close #626 and provide a basic sanity check for all providers, agnostic of provider specific requirements.