jlumbroso / free-disk-space

:octocat:⚙️🗑️ A GitHub Action to free disk space on an Ubuntu runner.
MIT License
385 stars 72 forks source link

google-cloud-sdk renamed to google-cloud-cli #17

Closed sensedata1 closed 1 year ago

sensedata1 commented 1 year ago

Looks like gh actions hosted runners are now installing the latest renamed google-cloud-cli package so the action is failing when it tries to remove the deprecated google-cloud-sdk package https://github.com/actions/runner-images/pull/8335

E: Unable to locate package google-cloud-sdk
Error: Process completed with exit code 100.
Jonatha-Varjao commented 1 year ago

Facing the same issue, just put

large-packages: false

in the options, and it worked for my case

sensedata1 commented 1 year ago

Facing the same issue, just put

large-packages: false

in the options, and it worked for my case

Indeed, but it would be nice not to have to throw the baby out with the bathwater. 😉

wind57 commented 1 year ago

here is a manual work-around:

    - name: manually remove gcloud
      shell: bash
      run: sudo apt-get remove google-cloud-cli

    - name: same as 'large-packages' but without 'google-cloud-sdk'
      shell: bash
      run: | 
        sudo apt-get remove -y '^dotnet-.*'
        sudo apt-get remove -y '^llvm-.*'
        sudo apt-get remove -y 'php.*'
        sudo apt-get remove -y '^mongodb-.*'
        sudo apt-get remove -y '^mysql-.*'
        sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
        sudo apt-get autoremove -y
        sudo apt-get clean

    - name: Free Disk Space
      uses: jlumbroso/free-disk-space@main
      with:
        tool-cache: true
        android: true
        dotnet: true
        haskell: true
        large-packages: false
        swap-storage: true
andreped commented 1 year ago

Made a PR: https://github.com/jlumbroso/free-disk-space/pull/18

bhavaniravi commented 1 year ago

Thanks for raising this and making a PR. Added this to my CI yesterday. Everything was working fine and today it broke

jlumbroso commented 1 year ago

@wind57 Thanks for the manual workaround! 🙏🏻

@andreped Thanks for the PR. 🥳

@briedel @v1v @bhavaniravi @sensedata1 @Jonatha-Varjao @KurtAhn @tokatoka @kenjis @sp98 Sorry for the disruption. Please let me know if the latest release v1.3.0 addresses all your concerns. Thank you!