Skip to content

Commit

Permalink
Fix bin/setup not to install ruby-head-wasm-wasi's Gemfile
Browse files Browse the repository at this point in the history
The ruby-head-wasm-wasi's Gemfile uses vendor/cache to install js gem
but the cache gem is not yet available at setup-time. And also with
cache gem, the Gemfile is not needed to be installed at setup-time.
So just skip the Gemfile installation here
  • Loading branch information
kateinoigakukun committed Jul 17, 2024
1 parent 3fca025 commit 6703565
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ root="$(cd "$(dirname "$0")/.." && pwd)"

env BUNDLE_GEMFILE="$root/Gemfile" bundle install
for gemfile in $root/packages/npm-packages/*/Gemfile; do
# Skip ruby-head-wasm-wasi's Gemfile because it does not need to be installed here
if [[ "$gemfile" == *"/ruby-head-wasm-wasi/Gemfile" ]]; then
continue
fi

# FIXME: This is a workaround for the following issue:
# 1. `bundle install` does not support auto-self-upgrade for pre-release bundler versions suffixed with ".dev"
# 2. ruby-head-wasm-wasi's component build depends on 2.6.0.dev, which added --target-rbconfig support
Expand Down

0 comments on commit 6703565

Please sign in to comment.