fix(release): Fix release-plz dirty-tree errors from Ruby binstubs (#547)

Ruby binstubs were checked in, but ignore via .gitignore **bin pattern.
This causes release-plz to think that the source tree is dirty.

The binstubs are deleted from source repo since they are always regenerated by bundler.
Also simplizy release-plz to focus only on the core crate.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2026-01-24 07:09:25 +05:30
committed by GitHub
parent fd59bb5a91
commit 2b1434b3ac
4 changed files with 3 additions and 30 deletions

3
.gitignore vendored
View File

@@ -29,6 +29,9 @@ bindings/*/target
**bin
**obj
# Bundler binstubs regenerated during ruby setup
bindings/ruby/bin/
# Visual Studio folders
**/*.vs

View File

@@ -1,11 +0,0 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require "bundler/setup"
require "regorus"
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
require "irb"
IRB.start(__FILE__)

View File

@@ -1,8 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -vx
bundle install
# Do any other automated setup that you need to do here

View File

@@ -5,20 +5,9 @@ changelog_update = false
dependencies_update = false
publish = false
# These files show up as modified (dirty) to release-plz:
# bindings/ruby/bin/console
# bindings/ruby/bin/setup
# As a result, release-plz fails during update.
# As a workaround, allow dirty workding directory.
allow_dirty = true
# But don't allow release-plz to publish dirty packages.
publish_allow_dirty = false
[[package]]
name = "regorus"
git_tag_enable = true
git_release_enable = true
changelog_update = true
publish = true
command = "cargo xtask bindings --base-ref origin/main"