Skip to content

Recommended folder for installing binaries #4377

Description

@hpedrorodrigues

Describe the bug

The version 2.334.0 introduced the folder cs under /home/runner/bin (#4317).

♪ docker run -it ghcr.io/actions/actions-runner:2.334.0 ls -lash /home/runner/bin/cs/
total 40K
4.0K drwxr-xr-x  2 runner docker 4.0K Apr 21 18:50 .
 20K drwxr-xr-x 17 runner docker  20K Apr 21 18:50 ..
 16K -rwxr--r--  1 runner docker  15K Feb 13  2025 Microsoft.VisualStudio.Validation.resources.dll

Previous version, for reference:

♪ docker run --rm ghcr.io/actions/actions-runner:2.333.1 ls -la /home/runner/bin/cs/
ls: cannot access '/home/runner/bin/cs/': No such file or directory

This is a problem, for actions like scala-steward-action, more specifically due to /src/modules/coursier.ts, where it downloads Coursier and extracts under /home/runner/bin/cs but with this new version it fails due to:

gzip: /home/runner/bin/cs already exists;    not overwritten.

So, what would be the recommended fix here? Extracting under a different path (e.g., /home/runner/.local/bin/cs)?

To Reproduce

I created this repository to reproduce the issue, but since ubuntu-latest is still running 2.333.1, we cannot reproduce it yet.

Runner Version and Platform

Runner: 2.334.0
Platform: Linux (self-hosted | GKE)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions