Skip to content

fix(shims): gitignore Bundler artifacts that break rubygem publish#380

Merged
rhuanbarreto merged 1 commit into
mainfrom
fix/rubygem-guard-clean
May 29, 2026
Merged

fix(shims): gitignore Bundler artifacts that break rubygem publish#380
rhuanbarreto merged 1 commit into
mainfrom
fix/rubygem-guard-clean

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Adds .gitignore entries for Gemfile.lock, .bundle/, and vendor/ under shims/rubygem/
  • ruby/setup-ruby with bundler-cache: true generates these as untracked files during CI
  • Bundler's release:guard_clean task (part of rake release) aborts when any untracked file exists in the repo, failing the publish-rubygem job

This is the third publish failure in a row for rubygem:

Version Error Fix
v0.40.0 Could not locate Gemfile — wrong working dir #368
v0.41.0 failed to load command: rake — Ruby 4.0 dropped default rake #377
v0.41.1 There are files that need to be committed first — untracked Bundler artifacts This PR

Test plan

  • Merge, create a new release tag, and verify publish-rubygem job passes
  • Alternatively, workflow_dispatch the publish-shims.yml workflow with the v0.41.1 tag after merging

ruby/setup-ruby with bundler-cache generates Gemfile.lock, .bundle/,
and vendor/ as untracked files. Bundler's release:guard_clean task
aborts when any untracked file exists, failing the publish-rubygem job
(broke v0.41.1 release).

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 29, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7ecea74
Status: ✅  Deploy successful!
Preview URL: https://99708e38.archgate-cli.pages.dev
Branch Preview URL: https://fix-rubygem-guard-clean.archgate-cli.pages.dev

View logs

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Metric Value
Lines 90.2% (6575 / 7289)
Threshold 90% minimum — met
Platforms Linux + Windows

Full HTML report available in workflow artifacts.

Per-directory breakdown
Directory Coverage Lines
src/commands/ 88.0% 2082 / 2365
src/engine/ 92.9% 1219 / 1312
src/formats/ 100.0% 141 / 141
src/helpers/ 90.3% 3133 / 3471

@rhuanbarreto rhuanbarreto merged commit 77bd39b into main May 29, 2026
18 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/rubygem-guard-clean branch May 29, 2026 10:24
@archgatebot archgatebot Bot mentioned this pull request May 29, 2026
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