zendframework/zend-validator

Automatize update of valid TLDs

Closed this issue · 5 comments

Actually Hostname validator depends of a regular execution of bin/update_hostname_validator.php for to host an up to date list of IANA TLDs

This should be automatized and even the list could be published in a different package for to allow more regular updates for LTS versions and newer.

Discussion: #2

In discussion #2 @weierophinney asked:

And do what? Commit the changes from Travis? That seems risky...

What do you think about marking the build as failed if TLDs are not updated? This would highlight the necessity to update them in order to restore the green badge.

That was my suggestion. To execute the script and if git status is dirty then fail

mm.. ok I did not notice

@fntlnz Do you want to create a PR with a fix for this?

Yes, sounds good to me