Link Bullet Train Core for Local Development
This skill checks out the bullet_train-core repository and links all contained Ruby gems in the Gemfile for local development.
Steps
- •
Clone the repository (if not already present):
- •Check if
./local/bullet_train-coreexists - •If not, create
./local/directory and clone via SSH:codegit clone git@github.com:bullet-train-co/bullet_train-core.git ./local/bullet_train-core
- •Check if
- •
Discover gems in the cloned repo:
- •List all directories in
./local/bullet_train-core/that contain a.gemspecfile - •These are the gems that need to be linked
- •List all directories in
- •
Update the Gemfile:
- •For each bullet_train gem currently using
BULLET_TRAIN_VERSION, add a, path: "local/bullet_train-core/<gem_folder>"option - •The gem folder name typically matches the gem name (with underscores)
- •Transform lines like:
to:ruby
gem "bullet_train", BULLET_TRAIN_VERSION
rubygem "bullet_train", BULLET_TRAIN_VERSION, path: "local/bullet_train-core/bullet_train"
- •For each bullet_train gem currently using
- •
Run bundle install:
- •After updating the Gemfile, run
bundle installto link the local gems
- •After updating the Gemfile, run
Important Notes
- •The SSH URL for the repo is:
git@github.com:bullet-train-co/bullet_train-core.git - •Keep the
BULLET_TRAIN_VERSIONin place so version compatibility is maintained - •Only modify gem lines that reference
BULLET_TRAIN_VERSION - •The local path should be relative:
local/bullet_train-core/<gem_name>