truffleruby icon indicating copy to clipboard operation
truffleruby copied to clipboard

`Context.environment()` does not work to set environment variable for script

Open sschuberth opened this issue 7 months ago • 1 comments

When I was trying to work around https://github.com/oracle/truffleruby/issues/3839 by setting the BUNDLE_GEMFILE environment variable, I realized that this also does not work: If I do context.environment("BUNDLE_GEMFILE", "$workingDir/Gemfile"), then ENV['BUNDLE_GEMFILE'] is nil in the script.

sschuberth avatar Apr 23 '25 11:04 sschuberth

Thank you for the report, we'll look into it.

andrykonchin avatar Apr 23 '25 12:04 andrykonchin

Any update here @andrykonchin?

sschuberth avatar Oct 02 '25 19:10 sschuberth

AFAIK there is no any update.

andrykonchin avatar Oct 07 '25 17:10 andrykonchin