Skip to content

Commit f413146

Browse files
committed
Base patched Trackler gem off actual version tag.
- was: hand-rolling a version of Trackler based of master and then applying changes from the PR/commit/local change to that trackler gem. - now: using the exact tagged version of Trackler as the basis for the hand-rolled gem. This fixes the issue where a change make to Trackler's master is incompatible with the current version of x-api. In short, we were building the Trackler gem wrong.
1 parent edbb7ab commit f413146

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎bin/journey-test.sh‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ make_local_trackler() {
143143

144144
local xjava=$( pwd )
145145
pushd ${trackler}
146+
147+
# Get the version of Trackler x-api is currently using
148+
local version=$( grep -m 1 'trackler' ${xapi_home}/Gemfile.lock | sed 's/.*(//' | sed 's/)//' )
149+
150+
git checkout v${version}
146151
git submodule init -- common
147152
git submodule update
148153

@@ -152,10 +157,6 @@ make_local_trackler() {
152157
cp ${xjava}/config.json tracks/java
153158
cp -r ${xjava}/exercises tracks/java
154159

155-
# Set the version to that expected by x-api
156-
version=$( grep -m 1 'trackler' ${xapi_home}/Gemfile.lock | sed 's/.*(//' | sed 's/)//' )
157-
echo "module Trackler VERSION = \"${version}\" end" > lib/trackler/version.rb
158-
159160
gem install bundler
160161
bundle install
161162
gem build trackler.gemspec

0 commit comments

Comments
 (0)