Toolcache not working #88

Closed
opened 2024-01-27 23:27:27 +00:00 by lawndoc · 1 comment

The tool cache mount point is incorrect, it should be /opt/hostedtoolcache. This is causing act to fail to cache tools, so actions like setup-python are rebuilding every time.

This is the offending code, where act is mounting to /toolcache instead of /opt/hostedtoolcache:

mounts := map[string]string{
"act-toolcache": "/toolcache",
name + "-env": ext.GetActPath(),
}

This has been talked about upstream since 2022 in nektos/act with this PR which went stale, and now it is brought up again in this issue.

Not sure if any maintainers here have any say in the upstream repo, but it would be nice to get this merged.

The Gitea Actions act runners are affected downstream by this, which is what brings me here.

The tool cache mount point is incorrect, it should be `/opt/hostedtoolcache`. This is causing act to fail to cache tools, so actions like [setup-python](https://github.com/actions/setup-python) are rebuilding every time. This is the offending code, where act is mounting to `/toolcache` instead of `/opt/hostedtoolcache`: https://gitea.com/gitea/act/src/commit/15045b4fc0f33dfc6ab27b6398195d2c2e3f26ce/pkg/runner/run_context.go#L137-L140 This has been talked about upstream since 2022 in nektos/act with [this PR](https://github.com/nektos/act/pull/1494) which went stale, and now it is brought up again in [this issue](https://github.com/nektos/act/issues/1987). Not sure if any maintainers here have any say in the upstream repo, but it would be nice to get this merged. The Gitea Actions act runners are affected downstream by this, which is what brings me here.
Owner

Since https://github.com/nektos/act/pull/1494 has been merged and this fork has followed up, I believe it's resolved.

Since https://github.com/nektos/act/pull/1494 has been merged and this fork has followed up, I believe it's resolved.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
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: gitea/act#88
No description provided.