-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Undefined constant "MagentoHackathon\Composer\Magento\Deploystrategy\GLOB_BRACE" under Alpine linux #36062
Comments
Hi @speller. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me 2.4-develop instance |
Hi @maddumarala. Thank you for your request. I'm working on Magento instance for you. |
Hi @maddumarala, here is your Magento Instance: https://ce17aaa83ddcc1716e6fc176f483726a.instances.magento-community.engineering |
I would recommend this be increased to S1 as the ability to run composer commands is likely "critical functionality" |
@xmav @sidolov @sdzhepa @andrewbess I think it should have p1 priority since that’s the only issue on alpine Linux, and the fix is pretty simple. We even have a pull request with needed changes At the same time, Magento Framework already using magento2/lib/internal/Magento/Framework/Filesystem/Glob.php Lines 9 to 15 in 544f044
|
Hi @engcom-November. Thank you for working on this issue.
|
Verified the issue by upgrading from 2.4.4 to 2.4.5 Project-community-edition as per the upgrade guide and the issue is not reproducible on Mac OS. We are verifying the issue on the mentioned environment: Alpine Linux. WIP. |
@engcom-November any updates? |
@engcom-November and @engcom-Hotel Could you please process this issue? |
Hello @speller, Thanks for the report and collaboration! We have tried to reproduce the issue with the docker image of Alpine Linux. We have pulled the image from its official link as below: https://hub.docker.com/_/alpine We have tried to reproduce the issue with a simple PHP script with the use of the As in the Magento, we are using this constant in file Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-6671 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
I had a dev run into this too. They ran Undefined constant "MagentoHackathon\Composer\Magento\Deploystrategy\GLOB_BRACE" They're on Den which is using |
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket AC-6671 by the internal team Based on the Jira ticket, the target version is 2.4.6. Thanks |
I am getting this error today when trying to update ece-tools. I've looked over the "fix" and I have the updates mentioned here but i'm still getting the error. I've never seen this error before today. I'm on a Mac running Adobe Commerce B2B v2.4.6-p3. I tried deleting the vendor folder, running composer install, and then attempting to upgrade ece-tools again using composer update magento/ece-tools --with-dependencies, but I get the following error:
|
The solution for me was to remove the vendor/ folder, then run composer update --with-dependencies. |
Preconditions and environment
Steps to reproduce
Following official instructions to upgrade 2.4.4 to 2.4.5 https://experienceleague.adobe.com/docs/commerce-operations/upgrade-guide/implementation/perform-upgrade.html
Expected result
Upgraded successfully
Actual result
Composer fails on the
composer update
step:Additional information
The official PHP documentation https://www.php.net/manual/en/function.glob.php says:
Failing code: https://github.com/magento/magento-composer-installer/blame/master/src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php#L345
Possible workaround is also discussed here: docker-library/php#719
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: