mirror of
https://github.com/nektos/act.git
synced 2026-04-25 17:05:50 +03:00
[GH-ISSUE #1271] Github Action home-brew does not work with act but works on Github.com #691
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @richtong on GitHub (Jul 22, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1271
Bug report info
Describe issue
Trying to install something via homebrew and this works on GitHub actions, but not with act
I get a message
brew not foundso something is wrong with the image building. I'm having trouble seeing where all this is happening, but it looks like you build a custom image for a build step, and somehow the image created does not execute the GitHub action correctly, so buried in here is `sh: 1: brew: not foundSince you delete the container I can't take a look at it to see how it is constructed and why homebrew was not installed. It could be I guess this problem with the containers running as root users and homebrew usually prevents installation as a result.
Link to GitHub repository
https://github.com/richtong/bin
Workflow content
Relevant log output
@catthehacker commented on GitHub (Jul 22, 2022):
homebrew is not included in those images, you should be using full image for compatibility with GitHub
@dpo commented on GitHub (Oct 9, 2022):
Act just hangs when I ask to download the large size image.
@rfay commented on GitHub (Mar 17, 2024):
You have to get the syntax exactly correct to get the full image or it's ignored, for example,
@rfay commented on GitHub (Mar 17, 2024):
But after waiting for the full pull of the ubuntu:full-22.04 (or latest) image, I find that it has homebrew in it (in /home/linuxbrew/.linuxbrew where it belongs), but the setup-homebrew action fails just the same.
It looks like it's a result of RUNNER_WORKSPACE being unbound.
This is https://github.com/ddev/ddev/blob/master/.github/workflows/tests.yml with most of the matrix commented out, just trying the race-detection element of the matrix.
act 0.2.60, installed via homebrew, Ubuntu 22.04 (WSL) amd64