Skip to content

release: stop committing Gemfile.lock - #9

Merged
ronaldtse merged 1 commit into
mainfrom
fix/remove-gemfile-lock
Aug 16, 2026
Merged

release: stop committing Gemfile.lock#9
ronaldtse merged 1 commit into
mainfrom
fix/remove-gemfile-lock

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • git rm --cached Gemfile.lock + gitignore it

Why

The metanorma/ci rubygems-release workflow does rm -f Gemfile.lockbundle installgem bump. Our committed multi-platform lockfile gets regenerated as single-platform, so gem bump aborts with "Uncommitted changes found. Please commit or stash. Aborting." — this blocked the 0.1.2 release (run 31940603501, release job failed at the bump step).

None of the sibling gems (lutaml, chemicalml, niso-jats, rfcxml, sts-ruby) commit a lockfile — it's the published-gem convention. It also removes the self-referencing lockfile issue (Bundler deployment mode refusing installs after version bumps).

Impact on CI

bundler-cache: true in build.yml resolves fresh from the Gemfile each run (no lockfile) — supported by ruby/setup-ruby, just a slightly less stable cache key. Local suite verified: 176/176 passing without the lockfile.

Test plan

  • build.yml CI green without committed lockfile
  • After merge: re-trigger release (next_version=patch) — bump step must pass this time

The metanorma/ci rubygems-release reusable workflow deletes
Gemfile.lock, runs a fresh bundle install, then calls gem bump --
which aborts with "Uncommitted changes found" because the
regenerated single-platform lockfile differs from the committed
multi-platform one. This blocked the 0.1.2 release (run 31940603501).

Published gems don't commit lockfiles (none of the sibling lutaml/
metanorma gems do). Removing it also eliminates the self-referencing
lockfile problem where deployment-mode Bundler refuses to install
after a version bump because the lockfile still pins the old gem
version.
@ronaldtse
ronaldtse merged commit ae401fe into main Aug 16, 2026
9 of 12 checks passed
@ronaldtse
ronaldtse deleted the fix/remove-gemfile-lock branch August 16, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant