-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.3] build.php Bug fix and stability improvements #45622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.3-dev
Are you sure you want to change the base?
Conversation
- Copying of non-existing `build/fido.jwt` file is simple deleted - I was wondering, why do we have this error and nobody cares? Looking around I found: - `plugins/system/webauthn/fido.jwt` file is created by `composer i` - Which runs `php build/update_fido_cache.php` - Which downloads the FIDO metadata about authenticators from https://mds.fidoalliance.org into `plugins/system/webauthn/fido.jwt` file - The line with `system('cp build/fido.jwt ' . $fullpath . '/plugins/system/webauthn/fido.jwt');` was added on 2 Sep 2022 with c2191a7 'Joomla! 4.2.2 Stable' - I assume this was another implementation of getting the FIDO metadata and is no more valid. - btw, the check `file_exists 'plugins/system/webauthn/fido.jwt'` was added with 205c7a5 'Fix/38233 webauth preload fido (joomla#38664)' - Improvement of two places where a variable was used for both the return code and the system output - The exit codes are now checked for all system commands and the script stops in case of errors
In deed it it true, ob_start is no longer needed. thx
Before this commit, the zip commands displayed every added file. Before joomla#45535, the output of the zip command with all added file names was suppressed by redirecting stdout to /dev/null. The same behaviour is now restored with the -q option.
@tecpromotion May I ask you to test with macOS? |
I have tested this item ✅ successfully on ef8e99f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45622.
Run build command
|
I have tested this item ✅ successfully on 2732677
What I could not verify is the effect of the This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45622. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45622. |
Summary of Changes
This is a follow-up to #45535 and was discussed in maintainer meeting 11 June 2025.
build/fido.jwt
file is simple deletedplugins/system/webauthn/fido.jwt
file is created bycomposer i
php build/update_fido_cache.php
plugins/system/webauthn/fido.jwt
filesystem('cp build/fido.jwt ' . $fullpath . '/plugins/system/webauthn/fido.jwt');
was added on 2 Sep 2022 with c2191a7 'Joomla! 4.2.2 Stable'file_exists 'plugins/system/webauthn/fido.jwt'
was added with 205c7a5 'Fix/38233 webauth preload fido (Fix/38233 webauth preload fido #38664)'/dev/null
. The same behaviour is now restored with the -q option.Testing Instructions
php build/build.php
php build/build.php --remote=HEAD
system_and_check
call and hack an error in, e.g. changecomposer
tocomposerXXX
and check the script stopspassthru()
replacement e.g. changewhich git
withwhich cheesecake
and check the script stopscheck the latest tag from Git repository is used, e.g.
Start build for remote tags/6.0.0-alpha1.
After merging this PR, we should check the nightly builds as they also use the script.
Actual result BEFORE applying this Pull Request
cp: build/fido.jwt: No such file or directory
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed