Coder Social home page Coder Social logo

Comments (6)

ondrejmirtes avatar ondrejmirtes commented on May 19, 2024

Last successful run: https://github.com/phpstan/phpstan/actions/runs/4204946177

I'm not sure if that's the reason for the failures, but I'm not sure about this line:

revision: ${{ github.event.release.target_commitish }}

GitHub Actions put 1.10.x there (even for releases on 1.9.x), but it should be a commit SHA instead?

from action-homebrew-bump-formula.

dawidd6 avatar dawidd6 commented on May 19, 2024

In the successful run we have:

==> Fetching /home/linuxbrew/.linuxbrew/Homebrew...
From https://github.com/Homebrew/brew
 * [new branch]          faster_tests     -> origin/faster_tests
   ebed4f564..a59f5eb52  master           -> origin/master
 * [new branch]          type-requirement -> origin/type-requirement
 * [new tag]             3.6.21           -> 3.6.21
 * [new tag]             4.0.0            -> 4.0.0
 * [new tag]             4.0.1            -> 4.0.1

==> Resetting /home/linuxbrew/.linuxbrew/Homebrew...
Switched to and reset branch 'master'
branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.

==> Fetching /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core...
From https://github.com/Homebrew/homebrew-core
   fea3[23](https://github.com/phpstan/phpstan/actions/runs/4204946177/jobs/7296330987#step:2:26)3bc2c..c2f709e[26](https://github.com/phpstan/phpstan/actions/runs/4204946177/jobs/7296330987#step:2:29)eb  master     -> origin/master

==> Resetting /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core...
Reset branch 'master'
branch 'master' set up to track 'origin/master'.

In the failed run we only have:

==> Fetching /home/linuxbrew/.linuxbrew/Homebrew...
From https://github.com/Homebrew/brew
   8ff2e29aa..853b33bcd  master           -> origin/master
 * [new branch]          shellcheck-shfmt -> origin/shellcheck-shfmt
 * [new branch]          sponsors-maintainers-man-completions -> origin/sponsors-maintainers-man-completions
 * [new tag]             4.0.2            -> 4.0.2
 * [new tag]             4.0.3            -> 4.0.3

==> Resetting /home/linuxbrew/.linuxbrew/Homebrew...
Switched to and reset branch 'master'
branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.

There seems to be no core-tap on Ubuntu runner images anymore and it is most likely a bug in brew after transition to installing from API.

from action-homebrew-bump-formula.

dawidd6 avatar dawidd6 commented on May 19, 2024

I can reproduce this in container:

linuxbrew@79a9a22eb3a3:~$ brew tap             
homebrew/core
linuxbrew@79a9a22eb3a3:~$ brew untap homebrew/core
Untapping homebrew/core...
Untapped 3 commands and 6533 formulae (6,885 files, 601.0MB).
linuxbrew@79a9a22eb3a3:~$ brew tap
linuxbrew@79a9a22eb3a3:~$ brew bump-formula-pr --version=1.20.0 phpstan
Warning: bump-formula-pr is a developer command, so Homebrew's
developer mode has been automatically turned on.
To turn developer mode off, run:
  brew developer off

Error: No available formula with the name "phpstan".
linuxbrew@79a9a22eb3a3:~$ brew tap homebrew/core
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Tapping homebrew/core
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1422011, done.
remote: Counting objects: 100% (750/750), done.
remote: Compressing objects: 100% (339/339), done.
remote: Total 1422011 (delta 430), reused 724 (delta 411), pack-reused 1421261
Receiving objects: 100% (1422011/1422011), 546.14 MiB | 10.55 MiB/s, done.
Resolving deltas: 100% (991979/991979), done.
Tapped 3 commands and 6534 formulae (6,886 files, 600.8MB).
linuxbrew@79a9a22eb3a3:~$ brew bump-formula-pr --version=1.20.0 phpstan
==> Downloading https://github.com/phpstan/phpstan/releases/download/1.20.0/phpstan.phar
curl: (22) The requested URL returned error: 404                              

Error: Failed to download resource "phpstan"
Download failed: https://github.com/phpstan/phpstan/releases/download/1.20.0/phpstan.phar

Ideally this should be fixed in brew, a "costly" workaround for you (for now) would be to execute brew tap homebrew/core before the Action. Also another option is to transform this Action to be a container-based one, or you could run it in container yourself (look at the workflows in this repo for example).

from action-homebrew-bump-formula.

dawidd6 avatar dawidd6 commented on May 19, 2024

Anyway, this commit 0a4c212 should fix this but will also prolong the Action execution I'm afraid.

from action-homebrew-bump-formula.

derrabus avatar derrabus commented on May 19, 2024

Thank you for analyzing and fixing the issue. As soon as PHPStan makes another release, we'll know if it worked. 🙂

from action-homebrew-bump-formula.

derrabus avatar derrabus commented on May 19, 2024

The last release successfully triggered a formula bump:

Thank you very much for the quick fix! I'm closing the issue now.

from action-homebrew-bump-formula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.