Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsolatedScriptingContainer does not honour setting Environment or Argv #3161

Closed
mkristian opened this Issue Jul 21, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@mkristian
Copy link
Member

commented Jul 21, 2015

c = IsolatedScriptingContainer.new
c.argv = ['-debug']
c.environment = { 'GEM_PATH' => '/tmp' }
c.runScriptlet("p ARGV; p ENV")

the configuration does not show up on ARGV or ENV. it works on 9k but not on 1.7.x since the constructor of IsolatedScriptingContainer does run a scriptlet already and then all changes to ARGV and ENV get ignored.

@mkristian mkristian added this to the JRuby 1.7.22 milestone Jul 21, 2015

@mkristian mkristian self-assigned this Jul 21, 2015

@mkristian

This comment has been minimized.

Copy link
Member Author

commented Jul 24, 2015

fixed via e6632c0 and 13a5e41

@mkristian mkristian closed this Jul 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.