-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Finding bundler gem in build? #11
Comments
Could you share the code of |
@ddoherty03 never mind. Should be my fault. There is another similarly reported issue . Let me fix it ASAP. |
@ddoherty03 Weird. I failed to reproduce it locally in the latest master branch (i.e. 0.4.0). Which version of rubyc are you using? |
@pmq20, I tried to get the version with Anyway, I tried again and go the same error: -> Running [{"CI"=>"true", "PATH"=>"/tmp/rubyc/ruby-2.4.1-.3.0/build/bin:/home/ded/.rbenv/shims:/home/ded/.rbenv/bin:/home/ded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ded/.cask/bin:/home/ded/go/bin", "GEM_HOME"=>nil, "GEM_PATH"=>nil, "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"1", "ENCLOSE_IO_RUBYC_1ST_PASS"=>"1", "ENCLOSE_IO_RUBYC_2ND_PASS"=>nil}, "sh", "-c", "gem install /__enclose_io_memfs__/local/vendor/bundler-1.15.2.gem --force --local --no-rdoc --no-ri"]
ERROR: Could not find a valid gem '/__enclose_io_memfs__/local/vendor/bundler-1.15.2.gem' (>= 0) in any repository
Failed running [{"CI"=>"true", "PATH"=>"/tmp/rubyc/ruby-2.4.1-.3.0/build/bin:/home/ded/.rbenv/shims:/home/ded/.rbenv/bin:/home/ded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ded/.cask/bin:/home/ded/go/bin", "GEM_HOME"=>nil, "GEM_PATH"=>nil, "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"1", "ENCLOSE_IO_RUBYC_1ST_PASS"=>"1", "ENCLOSE_IO_RUBYC_2ND_PASS"=>nil}, "sh", "-c", "gem install /__enclose_io_memfs__/local/vendor/bundler-1.15.2.gem --force --local --no-rdoc --no-ri"]
Here is the text of bin/byr: #! /usr/bin/env ruby
# -*- coding: utf-8 -*-
# -*- mode: ruby -*-
require 'byr'
module Byr
if ['-l', '--ledger'].include?(ARGV[0])
ARGV.shift
ledger_name = ARGV.shift
elsif ['-v', '--version'].include?(ARGV[0])
puts Byr::VERSION
exit(0)
end
command_name = ARGV.shift || 'shell'
init unless command_name == 'init'
set_current_ledger(ledger_name) if ledger_name
command = Command.get(command_name)
unless command
raise UserError, "unknown command #{command_name}"
end
exit(command.run(ARGV, from_shell: false))
rescue => exception
case exception
when UserError
oops "Error: #{exception.message}"
else
# Byr::LogicError, Byr::TransientError, and others
oops "Logic Error: #{exception}"
exception.backtrace.each do |ln|
oops ln
end
end
exit(1)
end Is there anything else that would help you diagnose this? |
@ddoherty03 I figured it out. |
Fixed in a84edb6 I'll release it in rubyc v0.4.0 as soon as possible. |
Good work, @pmq20. I'll try it out when I get some time. |
So impatient for |
@SwagDevOps. are you saying you have v0.4.0? I don't see it yet. |
Absolutely… as previously said, bug is fixed since 3 days… but, atm, you have to compile
|
@ddoherty03 @SwagDevOps Ruby Compiler v0.4.0 released! Download: http://enclose.io/rubyc |
Closing due to lack of feedback |
In trying to compile cli gem I am working on with:
I get the following error at the end:
It looks like it is trying to install the bundler gem from a local source but not finding it. Also seems to specify a root path /enclose_io_memfs ...
Am I missing something obvious here, or is this a bug?
The text was updated successfully, but these errors were encountered: