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
Closed

IsolatedScriptingContainer does not honour setting Environment or Argv #3161

mkristian opened this issue Jul 21, 2015 · 1 comment
Assignees
Milestone

Comments

@mkristian
Copy link
Member

@mkristian mkristian 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
Copy link
Member Author

@mkristian mkristian 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant