Repository navigation
Name the gitignore lines for Ruby setup output - #97
Merged
Merged
Conversation
dblock
force-pushed
the
dblock/ignore-bundler-output
branch
from
November 22, 2026 15:11
de045c4 to
04445a6
Compare
dblock
force-pushed
the
dblock/ignore-bundler-output
branch
from
November 22, 2026 15:14
04445a6 to
ae31bf0
Compare
ruby/setup-ruby with bundler-cache installs gems into vendor/bundle, writes .bundle/config, and creates a lockfile when none is committed, all inside the checkout. Unless .gitignore covers them, the clean checkout check at capture fails in every release and dry run. Document the lines to add in the README and workflow reference. When the check fails on this output, fold each setup directory into one line and end the error with the exact ignore lines, so a dry run says what to add. Other untracked or changed files are reported as before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW
dblock
force-pushed
the
dblock/ignore-bundler-output
branch
from
November 22, 2026 15:22
ae31bf0 to
471e8b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ruby/setup-rubywithbundler-cache: truerunsbundle config --local path $PWD/vendor/bundle, so it installs gems intovendor/bundleand writes.bundle/configinside the checkout. When no lockfile is committed, it also creates one. Unless.gitignorecovers these, the clean-checkout check at capture fails in every release and dry run, and the error listed 20 arbitrary gem paths with a generic hint. Found while adding the workflow to codegram/hyperclient#341./vendor/bundle/,/.bundle/, and the lockfile unless it's committed, or the release Gemfile's lockfile), and in the workflow reference's capture step and dry run.vendor/bundle/and.bundle/into one line per directory, and ends with the exact lines to add to.gitignore(mentioning committing the lockfile only when a lockfile is listed). A dry run'spreflightjob runs capture, so it reports these before any real release.This replaces the earlier version of this PR, which added a workflow step that wrote the same paths to
.git/info/exclude; that was more machinery than the problem needs.Validation
PARALLEL_TEST_PROCESSORS=4 bundle exec rake(472 examples, 0 failures; RuboCop clean, including prose, Markdown, and spelling) andactionlint.spec/ruby_gem_release/source_control/git_spec.rbuse a real Git repository: setup output with 30 gem files,.bundle/config,Gemfile.lock, andgemfiles/release.gemfile.lockreports four folded paths and the four ignore lines;vendor/bundlealone omits the lockfile advice; an unrelated untracked file gets no setup hint.vendor/bundleproduce a three-line listing and the ignore lines.Authored by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW