Re: pt_BR builds fails only locally
[email protected] ("Christoph M. Becker")
| Newsgroups | php.doc |
|---|---|
| Message-ID | <[email protected]> |
On 14.04.2021 at 19:45, André L F S Bacci wrote: > The pt_BR manual builds ok in docs.php.net [1] but fails locally (unknown > ID class.weakref). See [3] for a fast reproduction. > > So there is some mismatch on local vs central update, with no email > warnings. Can someone check if the migration from git.php.net to github > broke something? > > I also highlight this patch [2] that would make this type of situation more > easy to diagnose. > > André L F S Bacci > > > > [1] http://doc.php.net/logs/2021-04-14-16/ > > [2] https://github.com/php/systems/pull/16 > > [3] > ``` > mkdir phpdoc > cd phpdoc > git clone https://github.com/php/doc-base.git doc-base > git clone https://github.com/php/doc-en.git en > git clone https://github.com/php/doc-pt_br.git pt_BR > php doc-base/configure.php --with-lang=pt_BR > ``` I can reproduce the build failure. The problem is that the WeakRef extension documentation has been removed, but there is still a reference in language/predefined/weakreference.xml. It seems to me that the build server may not have updated properly. While your patch would help to identify that, it would not solve the root cause. Might still make sense to apply it, though. However, it might be more beneficial, if you set up a Github action to do the build; adapting <https://github.com/php/doc-en/blob/master/.github/workflows/integrate.yaml> isn't hard. That is particularly useful for PRs. Christoph