nix-community / bundix

Generates a Nix expression for your Bundler-managed application. [maintainer=@manveru]
163 stars 55 forks source link

ruby_3_0 fix for downloading files locally #104

Closed kirillrdy closed 1 year ago

kirillrdy commented 1 year ago

for gems that are downloaded from local disk eg rexml

URI.open(uri.to_s, 'r', 0600, open_options for local files with raise exception

URI.open '/nix/store/nkvkb0rzrbaf6sn52llhl33l31pjf7nn-ruby-3.0.6/lib/ruby/gems/3.0.0/cache/rexml-3.2.5.gem', 'r', 0600, {}
/nix/store/nkvkb0rzrbaf6sn52llhl33l31pjf7nn-ruby-3.0.6/lib/ruby/3.0.0/open-uri.rb:31:in `initialize': wrong number of arguments (given 4, expected 1..3) (ArgumentError)
from /nix/store/nkvkb0rzrbaf6sn52llhl33l31pjf7nn-ruby-3.0.6/lib/ruby/3.0.0/open-uri.rb:31:in `open'
from /nix/store/nkvkb0rzrbaf6sn52llhl33l31pjf7nn-ruby-3.0.6/lib/ruby/3.0.0/open-uri.rb:31:in `open'
kirillrdy commented 1 year ago

closing in favor of https://github.com/nix-community/bundix/pull/102