Skip to content

Commit 67c216e

Browse files
committed
fix: set BUNDLE_FROZEN=1 to stop bundler attempting to modify Gemfile.lock
Closes: pact-foundation/pact-python#73
1 parent 8985803 commit 67c216e

12 files changed

Lines changed: 12 additions & 0 deletions

packaging/pact-broker.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH
66
:: Tell Bundler where the Gemfile and gems are.
77
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile"
88
set BUNDLE_IGNORE_CONFIG=
9+
set BUNDLE_FROZEN=1
910

1011
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
1112
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib "%ROOT_PATH%\lib\app\pact-broker.rb" %*

packaging/pact-broker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIBDIR="`cd \"$DIR\" && cd ../lib && pwd`"
2020
# Tell Bundler where the Gemfile and gems are.
2121
export BUNDLE_GEMFILE="$LIBDIR/vendor/Gemfile"
2222
unset BUNDLE_IGNORE_CONFIG
23+
export BUNDLE_FROZEN=1
2324

2425
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
2526
exec "$LIBDIR/ruby/bin/ruby" -rreadline -rbundler/setup -I "$LIBDIR/app/lib" "$LIBDIR/app/pact-broker.rb" "$@"

packaging/pact-mock-service.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH
66
:: Tell Bundler where the Gemfile and gems are.
77
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile"
88
set BUNDLE_IGNORE_CONFIG=
9+
set BUNDLE_FROZEN=1
910

1011
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
1112
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib "%ROOT_PATH%\lib\app\pact-mock-service.rb" %*

packaging/pact-mock-service.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIBDIR="`cd \"$DIR\" && cd ../lib && pwd`"
2020
# Tell Bundler where the Gemfile and gems are.
2121
export BUNDLE_GEMFILE="$LIBDIR/vendor/Gemfile"
2222
unset BUNDLE_IGNORE_CONFIG
23+
export BUNDLE_FROZEN=1
2324

2425
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
2526
exec "$LIBDIR/ruby/bin/ruby" -rreadline -rbundler/setup -I "$LIBDIR/app/lib" "$LIBDIR/app/pact-mock-service.rb" "$@"

packaging/pact-provider-verifier.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH
66
:: Tell Bundler where the Gemfile and gems are.
77
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile"
88
set BUNDLE_IGNORE_CONFIG=
9+
set BUNDLE_FROZEN=1
910

1011
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
1112
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib "%ROOT_PATH%\lib\app\pact-provider-verifier.rb" %*

packaging/pact-provider-verifier.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIBDIR="`cd \"$DIR\" && cd ../lib && pwd`"
2020
# Tell Bundler where the Gemfile and gems are.
2121
export BUNDLE_GEMFILE="$LIBDIR/vendor/Gemfile"
2222
unset BUNDLE_IGNORE_CONFIG
23+
export BUNDLE_FROZEN=1
2324
unset RUBYGEMS_GEMDEPS # See https://github.com/pact-foundation/pact-mock-service-npm/issues/16
2425

2526
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.

packaging/pact-publish.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH
66
:: Tell Bundler where the Gemfile and gems are.
77
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile"
88
set BUNDLE_IGNORE_CONFIG=
9+
set BUNDLE_FROZEN=1
910

1011
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
1112
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib "%ROOT_PATH%\lib\app\pact-publish.rb" %*

packaging/pact-publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIBDIR="`cd \"$DIR\" && cd ../lib && pwd`"
2020
# Tell Bundler where the Gemfile and gems are.
2121
export BUNDLE_GEMFILE="$LIBDIR/vendor/Gemfile"
2222
unset BUNDLE_IGNORE_CONFIG
23+
export BUNDLE_FROZEN=1
2324
unset RUBYGEMS_GEMDEPS # See https://github.com/pact-foundation/pact-mock-service-npm/issues/16
2425

2526
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.

packaging/pact-stub-service.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH
66
:: Tell Bundler where the Gemfile and gems are.
77
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile"
88
set BUNDLE_IGNORE_CONFIG=
9+
set BUNDLE_FROZEN=1
910

1011
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
1112
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib "%ROOT_PATH%\lib\app\pact-stub-service.rb" %*

packaging/pact-stub-service.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIBDIR="`cd \"$DIR\" && cd ../lib && pwd`"
2020
# Tell Bundler where the Gemfile and gems are.
2121
export BUNDLE_GEMFILE="$LIBDIR/vendor/Gemfile"
2222
unset BUNDLE_IGNORE_CONFIG
23+
export BUNDLE_FROZEN=1
2324

2425
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
2526
exec "$LIBDIR/ruby/bin/ruby" -rreadline -rbundler/setup -I "$LIBDIR/app/lib" "$LIBDIR/app/pact-stub-service.rb" "$@"

0 commit comments

Comments
 (0)