Skip to content
Browse files

Remove bootstrap store: bootstrap into the real one instead

  • Loading branch information...
matthewd committed Mar 11, 2019
1 parent fafb42d commit c9aaee125b849128adc4dc5cec7b22f91ed6a476
Showing with 11 additions and 7 deletions.
  1. +0 −1 bin/metaruby
  2. +11 −6 bootstrap.rb
@@ -1,6 +1,5 @@

export GEL_STORE=`dirname $0`/../tmp/bootstrap/store
export GEL_LOCKFILE=`dirname $0`/../Gemfile.lock

exec `dirname $0`/gruby "$@"
@@ -13,14 +13,19 @@ def usage

Dir.chdir __dir__
Dir.mkdir "tmp" unless Dir.exist?("tmp")
Dir.mkdir "tmp/bootstrap" unless Dir.exist?("tmp/bootstrap")
Dir.mkdir "tmp/bootstrap/store" unless Dir.exist?("tmp/bootstrap/store")
Dir.mkdir "tmp/bootstrap/store/ruby" unless Dir.exist?("tmp/bootstrap/store/ruby")

store ="tmp/bootstrap/store/ruby")
loader ="Gemfile.lock")
# `gel install-gem pub_grub`
require_relative "lib/gel/catalog"
require_relative "lib/gel/work_pool" do |work_pool|
catalog ="", work_pool: work_pool)

Gel::Environment.install_gem([catalog], "pub_grub", nil, output: $stderr)

loader.activate(nil, store, install: true, output: $stderr)
# `gel install`
loader ="Gemfile.lock")
loader.activate(nil,, install: true, output: $stderr)


0 comments on commit c9aaee1

Please sign in to comment.
You can’t perform that action at this time.