Skip to content

GetNpmBinPathSetup overrides the Ruby version selected by ruby/setup-ruby #57950

Closed

Description

@ilja

Problem

With this runtime configuration:

runtimes:
  ruby:
    version: default

ruby/setup-ruby correctly selects Ruby 3.4.8 from .ruby-version. Inside AWF, Ruby 3.2.11 is used instead.

GetNpmBinPathSetup() prepends every cached bin directory:

export PATH="$(find "$RUNNER_TOOL_CACHE" -maxdepth 5 -type d -name bin | tr '\n' ':')$PATH"

This overrides the ordering established by ruby/setup-ruby when ubuntu-latest contains multiple cached Ruby versions.

Environment

  • ubuntu-latest
  • gh-aw compiler: 77dcd6b78d969b13feb193f0dc40db40eb8fe7a2
  • AWF: 0.28.9
  • Engine: Pi 0.84.1
  • Expected Ruby: 3.4.8
  • Actual Ruby inside AWF: 3.2.11

Expected

The Ruby selected by ruby/setup-ruby remains first on PATH inside AWF.

This appears to remain unresolved after #32044: the linked firewall fix covered the fallback without AWF_HOST_PATH, while GetNpmBinPathSetup() still reorders the normal AWF path.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions