A platform for community discussion. Free, open, simple.
DEV: Re-fetch bundler in linting CI so its checksum survives (#40852)
David Taylor793d88efed5c
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.ymlindex 8f3c88a1a86..5d29b05b0fe 100644--- a/.github/workflows/linting.yml+++ b/.github/workflows/linting.yml@@ -44,6 +44,8 @@ jobs:bundle config --local deployment truebundle config --local without developmentbundle config --local lockfile_checksums true+ # Drop the prebuilt bundler so `bundle install` re-fetches it, caching the .gem its checksum line needs+ rm -rf vendor/bundle/ruby/*/gems/bundler-* vendor/bundle/ruby/*/specifications/bundler-*bundle install --jobs 4bundle clean@@ -57,7 +59,13 @@ jobs:bundle lock --add-checksumsbundle lock --normalize-platformsif [[ $(git status -s Gemfile.lock) ]]; then- echo "Gemfile.lock is not up to date. Please run 'bundle lock --add-checksums' and 'bundle lock --normalize-platforms'." && false+ echo "Gemfile.lock is not up to date. To resolve, run:"+ echo " bundle lock --add-checksums && bundle lock --normalize-platforms"+ echo+ echo "Or manually apply the diff printed below:"+ echo "---------------------------------------------"+ git -c color.ui=always diff Gemfile.lock+ exit 1fi- name: Rubocop