[GH-ISSUE #96] Error when building from source #62

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

Originally created by @pjmartorell on GitHub (Feb 23, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/96

I have the following error when building from source:

> make build
?   	github.com/nektos/act	[no test files]
?   	github.com/nektos/act/cmd	[no test files]
ok  	github.com/nektos/act/pkg/common	(cached)	coverage: 44.6% of statements
ok  	github.com/nektos/act/pkg/container	(cached)	coverage: 60.3% of statements
ok  	github.com/nektos/act/pkg/model	(cached)	coverage: 11.1% of statements
ok  	github.com/nektos/act/pkg/runner	21.891s	coverage: 78.5% of statements
go run -mod=vendor main.go -ra build
Error: unknown shorthand flag: 'a' in -a
exit status 1
make: *** [Makefile:24: build] Error 1

Am I missing something?

Originally created by @pjmartorell on GitHub (Feb 23, 2020). Original GitHub issue: https://github.com/nektos/act/issues/96 I have the following error when building from source: ``` > make build ? github.com/nektos/act [no test files] ? github.com/nektos/act/cmd [no test files] ok github.com/nektos/act/pkg/common (cached) coverage: 44.6% of statements ok github.com/nektos/act/pkg/container (cached) coverage: 60.3% of statements ok github.com/nektos/act/pkg/model (cached) coverage: 11.1% of statements ok github.com/nektos/act/pkg/runner 21.891s coverage: 78.5% of statements go run -mod=vendor main.go -ra build Error: unknown shorthand flag: 'a' in -a exit status 1 make: *** [Makefile:24: build] Error 1 ``` Am I missing something?
kerem closed this issue 2026-03-01 21:39:34 +03:00
Author
Owner

@fennecdjay commented on GitHub (Feb 23, 2020):

Just ran in the same issue.
I ran go build and installed locally (I have ~/bin in my path).
seems to work.

Hope it helps.

<!-- gh-comment-id:590081496 --> @fennecdjay commented on GitHub (Feb 23, 2020): Just ran in the same issue. I ran `go build` and installed locally (I have ~/bin in my path). seems to work. Hope it helps.
Author
Owner

@pjmartorell commented on GitHub (Feb 23, 2020):

Just ran in the same issue.
I ran go build and installed locally (I have ~/bin in my path).
seems to work.

Hope it helps.

Thanks, I finally did the same.

<!-- gh-comment-id:590114430 --> @pjmartorell commented on GitHub (Feb 23, 2020): > Just ran in the same issue. > I ran `go build` and installed locally (I have ~/bin in my path). > seems to work. > > Hope it helps. Thanks, I finally did the same.
Author
Owner

@fennecdjay commented on GitHub (Feb 23, 2020):

What finally worked for me was

alias act='/path/to/act/binary -P ubuntu-latest=nektos/act-environments-ubuntu:18.04

in my .zshrc.

<!-- gh-comment-id:590129707 --> @fennecdjay commented on GitHub (Feb 23, 2020): What finally worked for me was ``` sh alias act='/path/to/act/binary -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 ``` in my `.zshrc`.
Author
Owner

@pjmartorell commented on GitHub (Feb 24, 2020):

in my case I compiled main.go, renamed it to act, chown root:root and moved it to /usr/local/bin, which is in my PATH

<!-- gh-comment-id:590225361 --> @pjmartorell commented on GitHub (Feb 24, 2020): in my case I compiled main.go, renamed it to `act`, `chown root:root` and moved it to `/usr/local/bin`, which is in my PATH
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#62
No description provided.