[GH-ISSUE #4] Clean install on macOS via Brew leads to a panic #3

Closed
opened 2026-03-01 21:39:02 +03:00 by kerem · 7 comments
Owner

Originally created by @fbartho on GitHub (Jan 15, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/4

==> Tapping nektos/tap
Cloning into '/usr/local/Homebrew/Library/Taps/nektos/homebrew-tap'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
Tapped 1 formula (32 files, 26.2KB).
==> Installing act from nektos/tap
==> Downloading https://github.com/nektos/act/releases/download/v0.0.3/act_Darwin_x86_64.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/163883279/97b25880-18ac-11e9-8624-e4ce6151ab2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190115T204420Z
######################################################################## 100.0%
🍺  /usr/local/Cellar/act/0.0.3: 5 files, 13.7MB, built in 6 seconds
💚  {fb/contexting} ~/Code/TRClient 🔥  act
panic: unquote ""Unit" err: invalid syntax

goroutine 1 [running]:
github.com/hashicorp/hcl/hcl/token.Token.Value(0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc00032c976, 0x7, 0x0, 0x105060d, ...)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/hcl/token/token.go:162 +0x59e
github.com/hashicorp/hcl.(*decoder).decodeString(0xc000203af0, 0xc0003483f0, 0x22, 0x1805ea0, 0xc00035d860, 0x1652e60, 0xc0003741f0, 0x198, 0x0, 0xc000202380)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:530 +0x2c5
github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc0003483f0, 0x22, 0x1805ea0, 0xc00035d860, 0x1652e60, 0xc0003741f0, 0x198, 0x0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:106 +0x7e5
github.com/hashicorp/hcl.(*decoder).decodeSlice(0xc000203af0, 0xc000356be0, 0x1f, 0x1805e60, 0xc000336e00, 0x1648e40, 0xc0003466a8, 0x197, 0xc0002025f8, 0xc0002025f8)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:459 +0x46d
github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc000356be0, 0x1f, 0x1805e60, 0xc000336e00, 0x1648e40, 0xc0003466a8, 0x197, 0x0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:104 +0x881
github.com/hashicorp/hcl.(*decoder).decodeStruct(0xc000203af0, 0xc000356b80, 0x1a, 0x1805f60, 0xc0003413e0, 0x170f780, 0xc000346680, 0x199, 0x0, 0xc000202e30)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:702 +0x1536
github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc000356b80, 0x1a, 0x1805fa0, 0xc0003413e0, 0x170f780, 0xc000346680, 0x199, 0x0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:108 +0x749
github.com/hashicorp/hcl.(*decoder).decodeMap(0xc000203af0, 0xc00032cac0, 0xb, 0x1805f60, 0xc00032f0c0, 0x167eb40, 0xc000344178, 0x195, 0xc000203248, 0xc000203248)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:386 +0x696
github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc00032cac0, 0xb, 0x1805f60, 0xc00032f0c0, 0x167eb40, 0xc000344178, 0x195, 0x0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:100 +0x5f3
github.com/hashicorp/hcl.(*decoder).decodeStruct(0xc000203af0, 0x17527ff, 0x4, 0x1805f60, 0xc00032e0c0, 0x1705e60, 0xc000344140, 0x199, 0x0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:692 +0x1749
github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0x17527ff, 0x4, 0x1805f60, 0xc00032e0c0, 0x1705e60, 0xc000344140, 0x199, 0x0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:108 +0x749
github.com/hashicorp/hcl.DecodeObject(0x170c580, 0xc000344140, 0x1805f60, 0xc00032e0c0, 0xc00032e0c0, 0x0)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:60 +0x16d
github.com/nektos/act/actions.ParseWorkflows(0xc000348030, 0x20, 0xc00034a080, 0x36, 0xc000203c40, 0x15d7eb5, 0xc000330000, 0x15dd330)
	/Users/casey.lee/Dev/personal/act/actions/parser.go:46 +0x33f
github.com/nektos/act/cmd.newRunAction.func1(0xc000330000, 0x1cbd420, 0x0, 0x0, 0x0, 0x0)
	/Users/casey.lee/Dev/personal/act/cmd/root.go:49 +0x8d
github.com/spf13/cobra.(*Command).execute(0xc000330000, 0xc000084190, 0x0, 0x0, 0xc000330000, 0xc000084190)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:762 +0x473
github.com/spf13/cobra.(*Command).ExecuteC(0xc000330000, 0x1, 0x17582ae, 0x11)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0xc000330000, 0x1c9d460, 0x1754440)
	/Users/casey.lee/Dev/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800 +0x2b
github.com/nektos/act/cmd.Execute(0x180a960, 0xc000209840, 0x17fd948, 0x5)
	/Users/casey.lee/Dev/personal/act/cmd/root.go:37 +0x3b4
main.main()
	/Users/casey.lee/Dev/personal/act/main.go:33 +0x167
Originally created by @fbartho on GitHub (Jan 15, 2019). Original GitHub issue: https://github.com/nektos/act/issues/4 ```shell ==> Tapping nektos/tap Cloning into '/usr/local/Homebrew/Library/Taps/nektos/homebrew-tap'... remote: Enumerating objects: 6, done. remote: Counting objects: 100% (6/6), done. remote: Compressing objects: 100% (5/5), done. remote: Total 6 (delta 0), reused 2 (delta 0), pack-reused 0 Unpacking objects: 100% (6/6), done. Tapped 1 formula (32 files, 26.2KB). ==> Installing act from nektos/tap ==> Downloading https://github.com/nektos/act/releases/download/v0.0.3/act_Darwin_x86_64.tar.gz ==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/163883279/97b25880-18ac-11e9-8624-e4ce6151ab2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190115T204420Z ######################################################################## 100.0% 🍺 /usr/local/Cellar/act/0.0.3: 5 files, 13.7MB, built in 6 seconds 💚 {fb/contexting} ~/Code/TRClient 🔥 act panic: unquote ""Unit" err: invalid syntax goroutine 1 [running]: github.com/hashicorp/hcl/hcl/token.Token.Value(0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc00032c976, 0x7, 0x0, 0x105060d, ...) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/hcl/token/token.go:162 +0x59e github.com/hashicorp/hcl.(*decoder).decodeString(0xc000203af0, 0xc0003483f0, 0x22, 0x1805ea0, 0xc00035d860, 0x1652e60, 0xc0003741f0, 0x198, 0x0, 0xc000202380) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:530 +0x2c5 github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc0003483f0, 0x22, 0x1805ea0, 0xc00035d860, 0x1652e60, 0xc0003741f0, 0x198, 0x0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:106 +0x7e5 github.com/hashicorp/hcl.(*decoder).decodeSlice(0xc000203af0, 0xc000356be0, 0x1f, 0x1805e60, 0xc000336e00, 0x1648e40, 0xc0003466a8, 0x197, 0xc0002025f8, 0xc0002025f8) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:459 +0x46d github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc000356be0, 0x1f, 0x1805e60, 0xc000336e00, 0x1648e40, 0xc0003466a8, 0x197, 0x0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:104 +0x881 github.com/hashicorp/hcl.(*decoder).decodeStruct(0xc000203af0, 0xc000356b80, 0x1a, 0x1805f60, 0xc0003413e0, 0x170f780, 0xc000346680, 0x199, 0x0, 0xc000202e30) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:702 +0x1536 github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc000356b80, 0x1a, 0x1805fa0, 0xc0003413e0, 0x170f780, 0xc000346680, 0x199, 0x0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:108 +0x749 github.com/hashicorp/hcl.(*decoder).decodeMap(0xc000203af0, 0xc00032cac0, 0xb, 0x1805f60, 0xc00032f0c0, 0x167eb40, 0xc000344178, 0x195, 0xc000203248, 0xc000203248) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:386 +0x696 github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0xc00032cac0, 0xb, 0x1805f60, 0xc00032f0c0, 0x167eb40, 0xc000344178, 0x195, 0x0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:100 +0x5f3 github.com/hashicorp/hcl.(*decoder).decodeStruct(0xc000203af0, 0x17527ff, 0x4, 0x1805f60, 0xc00032e0c0, 0x1705e60, 0xc000344140, 0x199, 0x0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:692 +0x1749 github.com/hashicorp/hcl.(*decoder).decode(0xc000203af0, 0x17527ff, 0x4, 0x1805f60, 0xc00032e0c0, 0x1705e60, 0xc000344140, 0x199, 0x0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:108 +0x749 github.com/hashicorp/hcl.DecodeObject(0x170c580, 0xc000344140, 0x1805f60, 0xc00032e0c0, 0xc00032e0c0, 0x0) /Users/casey.lee/Dev/go/pkg/mod/github.com/hashicorp/hcl@v1.0.0/decoder.go:60 +0x16d github.com/nektos/act/actions.ParseWorkflows(0xc000348030, 0x20, 0xc00034a080, 0x36, 0xc000203c40, 0x15d7eb5, 0xc000330000, 0x15dd330) /Users/casey.lee/Dev/personal/act/actions/parser.go:46 +0x33f github.com/nektos/act/cmd.newRunAction.func1(0xc000330000, 0x1cbd420, 0x0, 0x0, 0x0, 0x0) /Users/casey.lee/Dev/personal/act/cmd/root.go:49 +0x8d github.com/spf13/cobra.(*Command).execute(0xc000330000, 0xc000084190, 0x0, 0x0, 0xc000330000, 0xc000084190) /Users/casey.lee/Dev/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:762 +0x473 github.com/spf13/cobra.(*Command).ExecuteC(0xc000330000, 0x1, 0x17582ae, 0x11) /Users/casey.lee/Dev/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x2fd github.com/spf13/cobra.(*Command).Execute(0xc000330000, 0x1c9d460, 0x1754440) /Users/casey.lee/Dev/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800 +0x2b github.com/nektos/act/cmd.Execute(0x180a960, 0xc000209840, 0x17fd948, 0x5) /Users/casey.lee/Dev/personal/act/cmd/root.go:37 +0x3b4 main.main() /Users/casey.lee/Dev/personal/act/main.go:33 +0x167 ```
kerem closed this issue 2026-03-01 21:39:02 +03:00
Author
Owner

@cplee commented on GitHub (Jan 15, 2019):

@fbartho can you share your main.workflow?

<!-- gh-comment-id:454553827 --> @cplee commented on GitHub (Jan 15, 2019): @fbartho can you share your `main.workflow`?
Author
Owner

@fbartho commented on GitHub (Jan 15, 2019):

@cplee https://gist.github.com/fbartho/5bccef3a0a8f31ba47d2523424b547c8 -- I don't know that this is sensitive, but it would feel more reassuring to delete it once you have a copy, so please comment back when you've downloaded it.

<!-- gh-comment-id:454557140 --> @fbartho commented on GitHub (Jan 15, 2019): @cplee https://gist.github.com/fbartho/5bccef3a0a8f31ba47d2523424b547c8 -- I don't know that this is sensitive, but it would feel more reassuring to delete it once you have a copy, so please comment back when you've downloaded it.
Author
Owner

@cplee commented on GitHub (Jan 15, 2019):

@fbartho got it...and i'm able to reproduce it. I see the problem...thanks for reporting!

<!-- gh-comment-id:454557805 --> @cplee commented on GitHub (Jan 15, 2019): @fbartho got it...and i'm able to reproduce it. I see the problem...thanks for reporting!
Author
Owner

@fbartho commented on GitHub (Jan 15, 2019):

@cplee glad to help! Do please let me know what the ultimate fix was. I'm guessing some sort of parse error due to my comment blocks or something. Haha

<!-- gh-comment-id:454558621 --> @fbartho commented on GitHub (Jan 15, 2019): @cplee glad to help! Do please let me know what the ultimate fix was. I'm guessing some sort of parse error due to my comment blocks or something. Haha
Author
Owner

@cplee commented on GitHub (Jan 16, 2019):

@fbartho i haven't released a new version yet, but the code on master should address this. i can't confirm as i don't have your ./scripts/github_actions. want to try it out and confirm before i cut another release?

<!-- gh-comment-id:454659991 --> @cplee commented on GitHub (Jan 16, 2019): @fbartho i haven't released a new version yet, but the code on `master` _should_ address this. i can't confirm as i don't have your `./scripts/github_actions`. want to try it out and confirm before i cut another release?
Author
Owner

@cplee commented on GitHub (Jan 16, 2019):

@fbartho i've included a fix for this in v0.0.4. feel free to reopen if this issue persists!

<!-- gh-comment-id:454950379 --> @cplee commented on GitHub (Jan 16, 2019): @fbartho i've included a fix for this in `v0.0.4`. feel free to reopen if this issue persists!
Author
Owner

@fbartho commented on GitHub (Jan 16, 2019):

Sorry I didn't get a chance to test master! I've verified that v0.0.4 resolves my concerns!

<!-- gh-comment-id:454977696 --> @fbartho commented on GitHub (Jan 16, 2019): Sorry I didn't get a chance to test master! I've verified that v0.0.4 resolves my concerns!
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#3
No description provided.