Actions
Bug #12138
closedFailure to run smart-proxy from another package that has it as a dependency
Description
In the smart_proxy_dns_powerdns package I have a dependency on smart-proxy: https://github.com/theforeman/smart_proxy_dns_powerdns/blob/bd5f16c189fab2f4f3e03c7fb08ac8f893484ff9/Gemfile#L4-L6 . My goal is to run integration tests.
Now when I install dependencies using bundle install
, I see it downloads it. Next I try to run the proxy. Since there's no binstub, I use bundle exec $(bundle show smart_proxy)/bin/smart-proxy
. This shows the following error:
/home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/lib/smart_proxy.rb:33:in `<top (required)>': uninitialized constant Rack (NameError) from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/bin/smart-proxy:5:in `require' from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/bin/smart-proxy:5:in `<main>'
Adding require 'rack'
then there's a similar error:
/home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/lib/sinatra-patch.rb:9:in `<module:Sinatra>': uninitialized constant Sinatra::Request (NameError) from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/lib/sinatra-patch.rb:1:in `<top (required)>' from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/lib/smart_proxy.rb:35:in `require' from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/lib/smart_proxy.rb:35:in `<top (required)>' from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/bin/smart-proxy:5:in `require' from /home/ekohl/.gem/ruby/bundler/gems/smart-proxy-5667c1ee6395/bin/smart-proxy:5:in `<main>'
Another thing that would make testing easier if the config directory was configurable, but for now I can dump the config in the directory.
Updated by Anonymous over 9 years ago
- Pull request https://github.com/theforeman/smart-proxy/pull/323 added
- Pull request deleted (
)
Updated by Anonymous over 9 years ago
- Status changed from New to Assigned
- Assignee set to Ewoud Kohl van Wijngaarden
Updated by The Foreman Bot about 9 years ago
- Status changed from Assigned to Ready For Testing
Updated by Dominic Cleal about 9 years ago
- Category set to Core
- Translation missing: en.field_release set to 71
Updated by Anonymous about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset c9f0a075c6bb7e63ae56c44c2614e9cb233782e2.
Actions