3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
Alyssa Ross 67b1265fb3
bundlerEnv: ensure dependencies always included
Suppose I have a Gemfile like this:

    source "https://rubygems.org"
    gem "actioncable"
    gem "websocket-driver", group: :test

The gemset.nix generated by Bundix 2.4.1 will set ActionCable's groups
to [ "default" ], and websocket-driver's to [ "test" ]. This means that
the generated bundlerEnv wouldn't include websocket-driver unless the
test group was included, even though it's required by the default group.

This is arguably a bug in Bundix (websocket-driver's groups should
probably be [ "default" "test" ] or just [ "default" ]), but there's no
reason bundlerEnv should omit dependencies even given such an input --
it won't necessarily come from Bundix, and it would be good for
bundlerEnv to do the right thing.

To fix this, filterGemset is now a recursive function, that adds
dependencies of gems in the group to the filtered gemset until it
stabilises on the gems that match the required groups, and all of their
recursive dependencies.
2018-12-11 21:26:07 +00:00
..
applications Merge pull request #51838 from spacekookie/railcar 2018-12-11 20:18:55 +02:00
build-support Merge staging-next into master 2018-12-08 16:29:21 +01:00
common-updater
data Merge pull request #51763 from pbogdan/add-ant-theme 2018-12-10 22:39:27 +01:00
desktops gnome3.gnome-session: prevent crash when launching wayland sessions 2018-12-10 10:27:00 +01:00
development bundlerEnv: ensure dependencies always included 2018-12-11 21:26:07 +00:00
games steam: ran update-runtime.py 2018-12-10 13:50:06 +01:00
misc seafile-shared: 6.2.8 -> 6.2.9 2018-12-10 15:50:29 +01:00
os-specific linux: 4.20-rc5 -> 4.20-rc6 2018-12-11 11:11:34 -05:00
servers unit: add php module 7.3 2018-12-11 20:11:08 +01:00
shells oh-my-zsh: 2018-11-02 -> 2018-11-27 2018-12-10 09:54:19 -05:00
stdenv
test
tools minio-client: 2018-07-31T02-28-53Z -> 2018-12-05T22-59-07Z 2018-12-11 13:59:43 +01:00
top-level phpPackages.couchbase: 2.3.4 -> 2.6.0 2018-12-11 20:11:36 +01:00