diff options
author | Markus Wolf <KnisterPeter@users.noreply.github.com> | 2024-01-30 23:43:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 23:43:52 +0100 |
commit | 054caec791b2e98a917210ad4acdb46181372e09 (patch) | |
tree | ce3de092e6c54b7b8c5b9adea04ccbb723f8c162 /pkg/runner | |
parent | refactor: filecollector into new package (#2174) (diff) | |
download | forgejo-act-054caec791b2e98a917210ad4acdb46181372e09.tar.xz forgejo-act-054caec791b2e98a917210ad4acdb46181372e09.zip |
fix: use correct path to toolcache (#1494)
The toolcache on GitHub Actions need to be in
/opt/hostedtoolcache. This is the case for all
environment variables set by act, but it's not the
case for the volume mounted into the container.
Co-authored-by: Björn Brauer <zaubernerd@zaubernerd.de>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'pkg/runner')
-rw-r--r-- | pkg/runner/run_context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 937b480..8027f79 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -135,7 +135,7 @@ func (rc *RunContext) GetBindsAndMounts() ([]string, map[string]string) { ext := container.LinuxContainerEnvironmentExtensions{} mounts := map[string]string{ - "act-toolcache": "/toolcache", + "act-toolcache": "/opt/hostedtoolcache", name + "-env": ext.GetActPath(), } |