[GH-ISSUE #1595] Unable to build dependency graph #801

Closed
opened 2026-03-01 21:46:29 +03:00 by kerem · 2 comments
Owner

Originally created by @srepollock on GitHub (Feb 1, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1595

Bug report info

act version:            0.2.41
GOOS:                   darwin
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
	/var/run/docker.sock
	/Users/srepollock/.docker/run/docker.sock
Config files:           
Build info:
	Go version:            go1.19.5
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-compiler:            gc
		-ldflags:             -X main.version=0.2.41
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               amd64
		GOOS:                 darwin
		GOAMD64:              v1
Docker Engine:
	Engine version:        20.10.22
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:            
	OS arch:               x86_64
	OS kernel:             5.15.49-linuxkit
	OS CPU:                4
	OS memory:             3933 MB
	Security options:
		name=seccomp,profile=default
		name=cgroupns

Command used with act

act --verbose

Describe issue

I expected the module to run any of my programs

No response

Workflow content

n/a

Relevant log output

DEBU[0000] Loading environment from /redacted/.env
DEBU[0000] Loading action inputs from /redacted/.input
DEBU[0000] Loading secrets from /redacted/.secrets
DEBU[0000] Loading workflows from '/redacted/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'build.yml' in '/redacted/.github/workflows/build.yml'
DEBU[0000] Found workflow 'release.yml' in '/redacted/.github/workflows/release.yml'
DEBU[0000] Found workflow 'test.yml' in '/redacted/.github/workflows/test.yml'
DEBU[0000] Reading workflow '/redacted/.github/workflows/build.yml'
DEBU[0000] Reading workflow '/redacted/.github/workflows/release.yml'
DEBU[0000] Reading workflow '/redacted/.github/workflows/test.yml'
DEBU[0000] Preparing plan with all jobs
FATA[0000] Unable to build dependency graph!

Additional information

No response

Originally created by @srepollock on GitHub (Feb 1, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1595 ### Bug report info ```plain text act version: 0.2.41 GOOS: darwin GOARCH: amd64 NumCPU: 12 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock /Users/srepollock/.docker/run/docker.sock Config files: Build info: Go version: go1.19.5 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -compiler: gc -ldflags: -X main.version=0.2.41 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: darwin GOAMD64: v1 Docker Engine: Engine version: 20.10.22 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: x86_64 OS kernel: 5.15.49-linuxkit OS CPU: 4 OS memory: 3933 MB Security options: name=seccomp,profile=default name=cgroupns ``` ### Command used with act ```sh act --verbose ``` ### Describe issue I expected the module to run any of my programs ### Link to GitHub repository _No response_ ### Workflow content ```yml n/a ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /redacted/.env DEBU[0000] Loading action inputs from /redacted/.input DEBU[0000] Loading secrets from /redacted/.secrets DEBU[0000] Loading workflows from '/redacted/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'build.yml' in '/redacted/.github/workflows/build.yml' DEBU[0000] Found workflow 'release.yml' in '/redacted/.github/workflows/release.yml' DEBU[0000] Found workflow 'test.yml' in '/redacted/.github/workflows/test.yml' DEBU[0000] Reading workflow '/redacted/.github/workflows/build.yml' DEBU[0000] Reading workflow '/redacted/.github/workflows/release.yml' DEBU[0000] Reading workflow '/redacted/.github/workflows/test.yml' DEBU[0000] Preparing plan with all jobs FATA[0000] Unable to build dependency graph! ``` ### Additional information _No response_
kerem 2026-03-01 21:46:29 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@jsoref commented on GitHub (Feb 8, 2023):

So, I can reproduce this with https://github.com/vectordotdev/vector

steps (more or less):

cd $(mktemp -d)
gh repo clone vectordotdev/vector -- --depth 1
cd vector
act -l --verbose
Output
bash-5.2$ act -l --verbose
WARN  ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠  
DEBU[0000] Loading environment from /var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.env 
DEBU[0000] Loading action inputs from /var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.input 
DEBU[0000] Loading secrets from /var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.secrets 
DEBU[0000] Loading workflows from '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'baseline.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/baseline.yml' 
DEBU[0000] Found workflow 'environment.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/environment.yml' 
DEBU[0000] Found workflow 'gardener_open_issue.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_issue.yml' 
DEBU[0000] Found workflow 'gardener_open_pr.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_pr.yml' 
DEBU[0000] Found workflow 'install-sh.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/install-sh.yml' 
DEBU[0000] Found workflow 'integration-test.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/integration-test.yml' 
DEBU[0000] Found workflow 'k8s_e2e.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/k8s_e2e.yml' 
DEBU[0000] Found workflow 'labeler.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/labeler.yml' 
DEBU[0000] Found workflow 'nightly.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/nightly.yml' 
DEBU[0000] Found workflow 'publish.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/publish.yml' 
DEBU[0000] Found workflow 'regression.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression.yml' 
DEBU[0000] Found workflow 'regression_trusted.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression_trusted.yml' 
DEBU[0000] Found workflow 'release.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/release.yml' 
DEBU[0000] Found workflow 'test-harness.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test-harness.yml' 
DEBU[0000] Found workflow 'test.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/baseline.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/environment.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_issue.yml' 
DEBU[0000] Conditional GET for notices etag=2c13db20-c88b-4913-8559-fb41cc1ca426 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_pr.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/install-sh.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/integration-test.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/k8s_e2e.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/labeler.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/nightly.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/publish.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression_trusted.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/release.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test-harness.yml' 
DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test.yml' 
DEBU[0000] Preparing plan with all jobs                 
FATA[0000] Unable to build dependency graph!            

The problem here is test-harness.yml, it has one job test-harness that needs another (version) that doesn't exist.
github.com/vectordotdev/vector@f5e95ebe5b/.github/workflows/test-harness.yml (L7-L11)

<!-- gh-comment-id:1422713210 --> @jsoref commented on GitHub (Feb 8, 2023): So, I can reproduce this with https://github.com/vectordotdev/vector steps (more or less): ```sh cd $(mktemp -d) gh repo clone vectordotdev/vector -- --depth 1 cd vector act -l --verbose ``` <details><summary>Output</summary> ``` bash-5.2$ act -l --verbose WARN ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠ DEBU[0000] Loading environment from /var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.env DEBU[0000] Loading action inputs from /var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.input DEBU[0000] Loading secrets from /var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.secrets DEBU[0000] Loading workflows from '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'baseline.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/baseline.yml' DEBU[0000] Found workflow 'environment.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/environment.yml' DEBU[0000] Found workflow 'gardener_open_issue.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_issue.yml' DEBU[0000] Found workflow 'gardener_open_pr.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_pr.yml' DEBU[0000] Found workflow 'install-sh.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/install-sh.yml' DEBU[0000] Found workflow 'integration-test.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/integration-test.yml' DEBU[0000] Found workflow 'k8s_e2e.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/k8s_e2e.yml' DEBU[0000] Found workflow 'labeler.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/labeler.yml' DEBU[0000] Found workflow 'nightly.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/nightly.yml' DEBU[0000] Found workflow 'publish.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/publish.yml' DEBU[0000] Found workflow 'regression.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression.yml' DEBU[0000] Found workflow 'regression_trusted.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression_trusted.yml' DEBU[0000] Found workflow 'release.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/release.yml' DEBU[0000] Found workflow 'test-harness.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test-harness.yml' DEBU[0000] Found workflow 'test.yml' in '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/baseline.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/environment.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_issue.yml' DEBU[0000] Conditional GET for notices etag=2c13db20-c88b-4913-8559-fb41cc1ca426 DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/gardener_open_pr.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/install-sh.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/integration-test.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/k8s_e2e.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/labeler.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/nightly.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/publish.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/regression_trusted.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/release.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test-harness.yml' DEBU[0000] Reading workflow '/var/folders/r3/n29fz25x72x191fdv6mhhr3m0000gp/T/tmp.GjG0DViA/vector/.github/workflows/test.yml' DEBU[0000] Preparing plan with all jobs FATA[0000] Unable to build dependency graph! ``` </details> The problem here is `test-harness.yml`, it has one job `test-harness` that `needs` another (`version`) that doesn't exist. https://github.com/vectordotdev/vector/blob/f5e95ebe5b2eb8342d33ab03416eb8415884e847/.github/workflows/test-harness.yml#L7-L11
Author
Owner

@jsoref commented on GitHub (Feb 8, 2023):

Here's a sample repository: https://github.com/jsoref/necktos-act-issue-1595/actions

All workflows
Filter workflow runs
Showing runs from all workflows
3 workflow runs
Create bad-dependency.yml
bad-dependency #1: Commit 32a9964 pushed by jsoref
main
1 minute ago
Startup failure
Create bad-dependency.yml
pick-me #2: Commit 32a9964 pushed by jsoref
main
1 minute ago
1m 15s
Create pick-me.yml
pick-me #1: Commit 4919203 pushed by jsoref
main
2 minutes ago
14s

$ gh repo clone jsoref/necktos-act-issue-1595 1595
Cloning into '1595'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (13/13), done.
jsoref@jsoref-mbp issues % cd 1595
jsoref@jsoref-mbp 1595 % act -l
WARN  ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠
FATA[0000] Unable to build dependency graph!
<!-- gh-comment-id:1422825393 --> @jsoref commented on GitHub (Feb 8, 2023): Here's a sample repository: https://github.com/jsoref/necktos-act-issue-1595/actions All workflows Filter workflow runs Showing runs from all workflows 3 workflow runs [Create bad-dependency.yml](https://github.com/jsoref/necktos-act-issue-1595/actions/runs/4125809887) bad-dependency #1: Commit [32a9964](https://github.com/jsoref/necktos-act-issue-1595/commit/32a99646081a972314aacf9f2cd98859cc18c9a2) pushed by [jsoref](https://github.com/jsoref) [main](https://github.com/jsoref/necktos-act-issue-1595) 1 minute ago Startup failure [Create bad-dependency.yml](https://github.com/jsoref/necktos-act-issue-1595/actions/runs/4125809839) pick-me #2: Commit [32a9964](https://github.com/jsoref/necktos-act-issue-1595/commit/32a99646081a972314aacf9f2cd98859cc18c9a2) pushed by [jsoref](https://github.com/jsoref) [main](https://github.com/jsoref/necktos-act-issue-1595) 1 minute ago 1m 15s [Create pick-me.yml](https://github.com/jsoref/necktos-act-issue-1595/actions/runs/4125797873) pick-me #1: Commit [4919203](https://github.com/jsoref/necktos-act-issue-1595/commit/4919203e1e06dd3221bfeb4f7ab5239fd6be5342) pushed by [jsoref](https://github.com/jsoref) [main](https://github.com/jsoref/necktos-act-issue-1595) 2 minutes ago 14s ```sh $ gh repo clone jsoref/necktos-act-issue-1595 1595 Cloning into '1595'... remote: Enumerating objects: 13, done. remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 100% (8/8), done. remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (13/13), done. jsoref@jsoref-mbp issues % cd 1595 jsoref@jsoref-mbp 1595 % act -l WARN ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠ FATA[0000] Unable to build dependency graph! ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#801
No description provided.