[GH-ISSUE #1149] Issue: make install runs into Permission denied #646

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

Originally created by @barrettj12 on GitHub (May 5, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1149

System information

  • Operating System: Ubuntu 20.04 LTS
  • Architecture: x64 (amd64)
  • Apple M1: no
  • act version: dfca2c5
  • Go version: go1.18.1 linux/amd64

Expected behaviour

Run make install on the source code, and act is installed by Go.

Actual behaviour

make install returns the error:

cp: cannot create regular file '/usr/local/bin/act': Permission denied

sudo env "PATH=$PATH" make install still gives me silly errors, but it does install act. I'm not sure if using sudo with make is recommended, though.

I can see two solutions:

  • change the Makefile so that it has permissions to create the binary
  • change the README so that users know to use sudo.
Originally created by @barrettj12 on GitHub (May 5, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1149 ## System information - Operating System: Ubuntu 20.04 LTS - Architecture: x64 (amd64) - Apple M1: no - `act` version: dfca2c5 - Go version: go1.18.1 linux/amd64 ## Expected behaviour Run `make install` on the source code, and `act` is installed by Go. ## Actual behaviour `make install` returns the error: ``` cp: cannot create regular file '/usr/local/bin/act': Permission denied ``` `sudo env "PATH=$PATH" make install` still gives me silly errors, but it does install `act`. I'm not sure if using `sudo` with `make` is recommended, though. I can see two solutions: - change the `Makefile` so that it has permissions to create the binary - change the README so that users know to use sudo.
kerem 2026-03-01 21:45:12 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 5, 2022):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:1146708321 --> @github-actions[bot] commented on GitHub (Jun 5, 2022): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@larry0x commented on GitHub (Jul 25, 2024):

Same issue

  • Operating System: Ubuntu 22.04.4 LTS
  • Architecture: x64 (amd64)
  • Apple M1: no
  • act version: v0.2.64
  • Go version: go1.22.5 linux/amd64
<!-- gh-comment-id:2251097182 --> @larry0x commented on GitHub (Jul 25, 2024): Same issue - Operating System: Ubuntu 22.04.4 LTS - Architecture: x64 (amd64) - Apple M1: no - act version: v0.2.64 - Go version: go1.22.5 linux/amd64
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#646
No description provided.