shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.91k stars 339 forks source link

setup fails with libicuio.74.dylib error #824

Closed stovak closed 7 months ago

stovak commented 7 months ago

Describe the bug

Version

Runners

Operating systems currently just using MacOS-latest

PHP versions 7.4, 8.2, 8.3

To Reproduce

  functional:
    runs-on: ${{ matrix.operating-system }}
    name: Functional testing matrix - PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
    if: ${{ github.repository_owner == 'pantheon-systems' }}
    strategy:
      matrix:
        operating-system: [ 'macos-latest' ]
        php-versions: [ '7.4', '8.2', '8.3' ]
      max-parallel: 1

Expected behavior As recently as last week, these tests were running fine. Something must have changed with home-brew.

Screenshots/Logs

dyld[4587]: Library not loaded: '@loader_path/../../../../opt/icu4c/lib/libicuio.74.dylib'
  Referenced from: '/usr/local/Cellar/php@8.2/8.2.***6_***/bin/php'
  Reason: tried: '/usr/local/Cellar/php@8.2/8.2.***6_***/bin/../../../../opt/icu4c/lib/libicuio.74.dylib' (no such file), '/usr/local/lib/libicuio.74.dylib' (no such file), '/usr/lib/libicuio.74.dylib'

Additional context

Are you willing to submit a PR? yes. No idea how to fix.

stovak commented 7 months ago

Successful Run: image

stovak commented 7 months ago

Failed Run image

YOU54F commented 7 months ago

Just came across this

icu4c was just updated a couple of days ago - history to 74.2

macos-latest is currently macos-12 so this should help

brew upgrade icu4c alone picks up the older formula, I think until the image is refreshed by the github runners team

      - run: brew update && brew upgrade icu4c
        if: runner.os == 'macOS'
namespacebrian commented 7 months ago

Our CI run yesterday didn't show the problem, but the formula was also changed again 7 hours ago: https://github.com/Homebrew/homebrew-core/pull/164239/files#diff-56cb84e443c4e098fcab1be8433f3014e8393c0a8841dabb55677ac9db2e98b5

WyriHaximus commented 7 months ago

Just restarted a workflow that had this issue and is now green.

stovak commented 7 months ago

Thanks guys! So weird that it worked one dan not the next.