3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development
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
..
arduino platformio: 3.6.1 -> 3.6.2 2018-12-11 16:37:07 +08:00
beam-modules
bower-modules/generic
compilers Merge master into staging-next 2018-12-08 12:40:13 +01:00
coq-modules coqPackages.simple-io: init at 0.2 2018-12-10 15:35:34 +00:00
dhall-modules
dotnet-modules/patches
em-modules/generic
go-modules
guile-modules
haskell-modules Merge master into staging-next 2018-12-07 15:22:35 +01:00
idris-modules
interpreters php: fix build php 7.3 in Darwin 2018-12-11 20:11:30 +01:00
java-modules
libraries Merge pull request #51851 from veprbl/pr/rivet_bump 2018-12-11 12:49:48 +01:00
lisp-modules Add cl-jpeg, cl-pdf & cl-typesetting, no extra external deps 2018-12-05 07:01:40 +01:00
lua-modules
misc
mobile
node-packages nodePackages: Regenerate and fix azure-cli 2018-12-10 11:46:46 +01:00
ocaml-modules ocamlPackages.checkseum: init at 0.0.3 2018-12-11 08:12:27 +00:00
perl-modules
pharo
pure-modules
python-modules pythonPackages.robotframework-selenium2library: 1.6.0 -> 3.0.0 2018-12-11 09:10:00 -05:00
r-modules rstudioWrapper: include desktop file 2018-12-07 16:44:01 -05:00
ruby-modules bundlerEnv: ensure dependencies always included 2018-12-11 21:26:07 +00:00
tools sbt-extras: 2018-09-27 -> 2018-12-04 2018-12-10 12:56:39 -05:00
web