Change TOOLS_DIR to SETUP_PHP_TOOLS_DIR to prevent regression#945
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #945 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 811 811
Branches 293 293
=========================================
Hits 811 811 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Is is possible that this fixes also #956? If yes, why? |
This PR fixed #943 and has fixed any other similar situations locally on my system. I have not done a deep dive to find out why specifically the issue occurred in the first place, but I have been able to verify on multiple unique use-cases that this type of error no longer occurs with this change. My best guess is that "TOOLS_DIR" was too ambiguous of an env name and is referenced in other libraries that setup-php is used in conjunction with, which causes a conflict. By giving a more granular env name of "SETUP_PHP_TOOLS_DIR", it prevents a conflict of the same env name being used. I would have to assume that since #956 is referencing the same issues relating to composer that I've seen on my local tests that this PR would also fix this issue, but as there hasn't been an official release since before this PR, you would need to specify using the "develop" branch of setup-php in your workflow to utilize this change or await an official release. |
name: 🐞 Bug Fix - Change TOOLS_DIR to SETUP_PHP_TOOLS_DIR to prevent regression
about: Rename "TOOLS_DIR" to "SETUP_PHP_TOOLS_DIR" to prevent regression issue.
labels: enhancement
Related discussion:
#943 - Original Issue
#937 - Original PR by @Sn0wCrack
#937 (comment) - Proposed fix by @shivammathur
Description
As outlined in issue #943 the "TOOLS_DIR" env variable encounters an issue. @shivammathur mentioned changing "TOOLS_DIR" to "SETUP_PHP_TOOLS_DIR" to prevent this regression issue. This PR makes that change.
Workflow Action Test: https://github.com/JMoodyFWD/cphalcon/actions/runs/14865714594
Workflow Action YAML: https://github.com/JMoodyFWD/cphalcon/actions/runs/14865714594/workflow