mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #535] Issue: crash #361
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#361
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 @jleonard-r7 on GitHub (Feb 17, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/535
Act version
0.2.17
Expected behaviour
Does not crash.
Actual behaviour
Crashes.
10:32 $ act
panic: runtime error: comparing uncomparable type map[string]interface {}
goroutine 1 [running]:
github.com/nektos/act/pkg/model.commonKeysMatch(0xc000181500, 0xc0000aeba0, 0x4)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/pkg/model/workflow.go:198 +0x139
github.com/nektos/act/pkg/model.(*Job).GetMatrixes(0xc0000e5680, 0xc0000a5040, 0x6, 0xc0000e5680)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/pkg/model/workflow.go:180 +0x4b5
github.com/nektos/act/pkg/runner.(*runnerImpl).NewPlanExecutor(0xc00043b2c0, 0xc00043a4a0, 0x5)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/pkg/runner/runner.go:66 +0x52c
github.com/nektos/act/cmd.newRunCommand.func1(0xc0000aa000, 0x1e40218, 0x0, 0x0, 0x0, 0x0)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/cmd/root.go:202 +0x89c
github.com/spf13/cobra.(*Command).execute(0xc0000aa000, 0x1e40218, 0x0, 0x0, 0xc0000aa000, 0x1e40218)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:762 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000aa000, 0x0, 0x0, 0x8)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2fe
github.com/spf13/cobra.(*Command).Execute(...)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/nektos/act/cmd.Execute(0x19e8680, 0xc0003d8100, 0x19bf8b0, 0x6)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/cmd/root.go:57 +0xadb
main.main()
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/main.go:33 +0x175
Workflow and/or repository
workflow
Steps to reproduce
actoutput10:32 $ act
panic: runtime error: comparing uncomparable type map[string]interface {}
goroutine 1 [running]:
github.com/nektos/act/pkg/model.commonKeysMatch(0xc000181500, 0xc0000aeba0, 0x4)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/pkg/model/workflow.go:198 +0x139
github.com/nektos/act/pkg/model.(*Job).GetMatrixes(0xc0000e5680, 0xc0000a5040, 0x6, 0xc0000e5680)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/pkg/model/workflow.go:180 +0x4b5
github.com/nektos/act/pkg/runner.(*runnerImpl).NewPlanExecutor(0xc00043b2c0, 0xc00043a4a0, 0x5)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/pkg/runner/runner.go:66 +0x52c
github.com/nektos/act/cmd.newRunCommand.func1(0xc0000aa000, 0x1e40218, 0x0, 0x0, 0x0, 0x0)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/cmd/root.go:202 +0x89c
github.com/spf13/cobra.(*Command).execute(0xc0000aa000, 0x1e40218, 0x0, 0x0, 0xc0000aa000, 0x1e40218)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:762 +0x47c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000aa000, 0x0, 0x0, 0x8)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2fe
github.com/spf13/cobra.(*Command).Execute(...)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/nektos/act/cmd.Execute(0x19e8680, 0xc0003d8100, 0x19bf8b0, 0x6)
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/cmd/root.go:57 +0xadb
main.main()
/private/tmp/act-20201115-3464-1rimm85/act-0.2.17/main.go:33 +0x175
@mumoshu commented on GitHub (Feb 17, 2021):
@jleonard-r7 I believe this is fixed via #415 and v0.2.18. Could you try again with v0.2.18 or greater?
@jleonard-r7 commented on GitHub (Feb 18, 2021):
I installed via homebrew so am at the mercy of the package maintainers.
@github-actions[bot] commented on GitHub (Mar 21, 2021):
Issue is stale and will be closed in 14 days unless there is new activity