Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building from source #96

Closed
pjmartorell opened this issue Feb 23, 2020 · 4 comments · Fixed by #98
Closed

Error when building from source #96

pjmartorell opened this issue Feb 23, 2020 · 4 comments · Fixed by #98

Comments

@pjmartorell
Copy link

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?

@fennecdjay
Copy link

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.

@pjmartorell
Copy link
Author

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.

@fennecdjay
Copy link

fennecdjay commented 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.

@pjmartorell
Copy link
Author

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

@cplee cplee mentioned this issue Feb 25, 2020
@cplee cplee closed this as completed in #98 Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants