-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken1.severity: blockerThis is preventing another PR or issue from being completedThis is preventing another PR or issue from being completed6.topic: rubyA dynamic, open source programming language with a focus on simplicity and productivity.A dynamic, open source programming language with a focus on simplicity and productivity.
Milestone
Description
Describe the bug
When running bin/bundler from a bundlerEnv.wrappedRuby, it fails with the message
`<module:Bundler>': uninitialized constant Bundler::FeatureFlag (NameError)
and stack trace:
Traceback (most recent call last):
16: from /nix/store/35y07jj9xsdyflgdj6cs943ci97m5y2q-ruby-2.7.0/bin/bundler:23:in `<main>'
15: from /nix/store/35y07jj9xsdyflgdj6cs943ci97m5y2q-ruby-2.7.0/bin/bundler:23:in `load'
14: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/exe/bundler:4:in `<top (required)>'
13: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/exe/bundler:4:in `load'
12: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
11: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
10: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/exe/bundle:23:in `block in <top (required)>'
9: from /nix/store/35y07jj9xsdyflgdj6cs943ci97m5y2q-ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
8: from /nix/store/35y07jj9xsdyflgdj6cs943ci97m5y2q-ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
7: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler/cli.rb:6:in `<top (required)>'
6: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler/cli.rb:7:in `<module:Bundler>'
5: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler/cli.rb:97:in `<class:CLI>'
4: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler.rb:478:in `feature_flag'
3: from /nix/store/35y07jj9xsdyflgdj6cs943ci97m5y2q-ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
2: from /nix/store/35y07jj9xsdyflgdj6cs943ci97m5y2q-ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
1: from /nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler/feature_flag.rb:3:in `<top (required)>'
/nix/store/s490w5mlc4r74hqz9k2vsf1ws1r1k663-thor-1.0.1/lib/ruby/gems/2.7.0/gems/bundler-1.17.3/lib/bundler/feature_flag.rb:4:in `<module:Bundler>': uninitialized constant Bundler::FeatureFlag (NameError)
To Reproduce
In the context of the sample gist, run
$(nix-build --no-out-link test.nix --argstr rubyAttr ruby_2_7 -A wrappedRuby)/bin/bundler exec true
This seems to be new in ruby_2_7, running the following with ruby_2_6 works as expected
$(nix-build --no-out-link test.nix --argstr rubyAttr ruby_2_6 -A wrappedRuby)/bin/bundler exec true
Metadata
- system:
"x86_64-linux" - host os:
Linux 5.4.13, NixOS, 20.03pre210072.8500d560a44 (Markhor) - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.3.2 - channels(lorne):
"" - channels(root):
"nixos-20.03pre210072.8500d560a44" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: bundlerEnv
# a list of nixos modules affected by the problem
module:Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken1.severity: blockerThis is preventing another PR or issue from being completedThis is preventing another PR or issue from being completed6.topic: rubyA dynamic, open source programming language with a focus on simplicity and productivity.A dynamic, open source programming language with a focus on simplicity and productivity.