Skip to content

Commit 490205e

Browse files
ondrejmirtesclaude
andcommitted
Check out full history in the jobs running the turbo extension on the source
Since the expected turbo version is generated on autoloader dump from `git log -- turbo-ext/src`, the jobs running PHPStan from source with a prebuilt extension need the same history the compile jobs build it with: in a shallow checkout the log yields the grafted root commit, so the generated version never matches the extension. The job-container legs of turbo-differential additionally need to trust the checkout, or git refuses to read it and no version is generated at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013qRnM7saDyd5yKXxJAnR7o
1 parent 5e09eb5 commit 490205e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/phar.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ jobs:
13101310
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
13111311
with:
13121312
persist-credentials: false
1313+
fetch-depth: 0 # the autoloader dump generates the expected turbo version from git log over turbo-ext/src
13131314

13141315
# vendor/ (and tests/vendor for the tests legs) is installed on the
13151316
# runner host and only read from the mounted workspace: the
@@ -1929,6 +1930,7 @@ jobs:
19291930
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
19301931
with:
19311932
persist-credentials: false
1933+
fetch-depth: 0 # the autoloader dump generates the expected turbo version from git log over turbo-ext/src
19321934

19331935
- name: "Install PHP"
19341936
if: ${{ !matrix.container }}
@@ -1951,6 +1953,11 @@ jobs:
19511953
with:
19521954
ignore-cache: true
19531955

1956+
# the autoloader dump reads the expected turbo version from git
1957+
- name: "Trust the checkout despite the container/host uid mismatch"
1958+
if: ${{ matrix.container }}
1959+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
1960+
19541961
- name: "Install Composer dependencies (verified composer)"
19551962
if: ${{ matrix.container }}
19561963
run: |
@@ -2056,6 +2063,7 @@ jobs:
20562063
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
20572064
with:
20582065
persist-credentials: false
2066+
fetch-depth: 0 # the autoloader dump generates the expected turbo version from git log over turbo-ext/src
20592067

20602068
# The same container, packages and composer as turbo-compile-musl-arm64.
20612069
- name: "Start the Alpine container"
@@ -2185,6 +2193,7 @@ jobs:
21852193
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
21862194
with:
21872195
persist-credentials: false
2196+
fetch-depth: 0 # the autoloader dump generates the expected turbo version from git log over turbo-ext/src
21882197

21892198
- name: "Install PHP"
21902199
uses: "shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962" # 2.40.0

0 commit comments

Comments
 (0)